KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to get json data from an external domain. I used WebRequest to get the response from a website. Here's the code: var request = WebRequest.Create(url); string text; var response = (HttpWebResponse) request.GetResponse(); using (var sr = new StreamReader(response.GetResponseStream())) { text = sr.ReadToEnd(); } Does anyone know why I can't get the json data?
Tags (comma-separated)
Save Edits
Cancel