0

Hi All,

I want to develop asp.net web-site by using API provided by cleartrip. I used that API but every time I received the response as bad request. Please help me to soulve the issue.

Here is my Code:-

HttpWebRequest req = (HttpWebRequest)WebRequest.Create(http://api.staging.cleartrip.com/air/1.0/search?from=BOM&to=DEL&depart-date=2010-12-20);
 
req.Method = "Get";
req.Headers.Add("X-CT-API-KEY", "MYAPIKEY");
 
HttpWebResponse oResponse;
oResponse =(HttpWebResponse) req.GetResponse();

Plese check the attached file for erroe details. (BAD REQUEST].

Thanks

Attachments cleartrip.JPG 150.74 KB
4
Contributors
3
Replies
6
Views
6 Years
Discussion Span
Last Post by roopaguru
0

Presumably because its an invalid URL you're using?

Error 400: Requested URL invalid or incomplete

I have tried to use the website using the recommended example and it does not work - suspect the site has changed its policy for access

Edited by CrappyCoder: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.