Solved

Passing a URL as a parameter in REST web services

Posted on 2014-02-14
3
1,034 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 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:charlesbaldo
ID: 39862134
Thank you
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Reseller Hosting 2 89
Media.Imaging 1 18
Hey Audio! 3 28
SqlDependency to get update from sql to my c# app 2 39
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

776 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