Hi ,
I want to pass the following url and header to return the json object as output.
can anyone help me i don.t have any idea regarding the inplementation in aspx page.
Url is:https://rest.idc.com/item/!type/document/research/other/!taxonomy/GEOGRAPHY/3_328?order=DATE
Following header needs to be available during the request.
Accept: application/vnd.idc.com-v2+json
Anybody has an idea please helpme.
Thank you
Regards
priya
How to pass the resr Api url with the header to return json
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Shailesh UkeRank #1,917 · 766 reputationPosted Apr 28, 2015, 10:30 PM EDT
string baseurl = "https://rest.idc.com/item/!type/document/research/other/!taxonomy/GEOGRAPHY/3_328?order=DATE";
Stream data = client.OpenRead(baseurl);
StreamReader reader = new StreamReader(data);
string s = reader.ReadToEnd();
return s;