Solved

Passing a URL as a parameter in REST web services

Posted on 2014-02-14
3
1,079 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 400 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 100 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

735 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