Solved

Passing a URL as a parameter in REST web services

Posted on 2014-02-14
3
1,011 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:charlesbaldo
3 Comments
 
LVL 74

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 82

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:charlesbaldo
ID: 39862134
Thank you
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now