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
Loading
Shailesh UkePosted Apr 29, 2015, 2:30 AM
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;