Passing a URL as a parameter in REST web services

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?
Charles BaldoSoftware DeveloperAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
käµfm³d 👽Connect With a Mentor Commented:
URL-encoding is exactly how you should do that. Are you passing it in a GET or something else?
0
 
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
@¿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
 
Charles BaldoSoftware DeveloperAuthor Commented:
Thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.