?
Solved

Passing a URL as a parameter in REST web services

Posted on 2014-02-14
3
Medium Priority
?
1,219 Views
Last Modified: 2014-02-15
I am using REST webservices with JSON as the web format.  One of the parameters I need to pass in in a web address ie http://www.experts-exchange.com.  The call is choking on the url as the parameter and creating an error

The remote server returned an error: (400) Bad Request."  I tried URT encoding but am having trouble with that, It appears and special character is causing a problem.

Any ideas?
0
Comment
Question by:Charles Baldo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 1600 total points
ID: 39860909
URL-encoding is exactly how you should do that. Are you passing it in a GET or something else?
0
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 400 total points
ID: 39860928
@¿kaufmed? is right.  You need to give us a more exact and detailed example of something that isn't working.  "://" are the special characters in http://www.experts-exchange.com/ .  Urlencoded it should look like
http%3A%2F%2Fwww.experts-exchange.com%2F

Open in new window


http://meyerweb.com/eric/tools/dencoder/
0
 

Author Closing Comment

by:Charles Baldo
ID: 39862134
Thank you
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses
Course of the Month13 days, 15 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question