Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string url = @"http://abhinavevent2014.sched.org/api/auth/login?api_key=1309658400d57c8cfc6081f8361de52c&username=abhinavm@test.com&password=test";
- Encoding encode = System.Text.Encoding.GetEncoding("utf-8");
- WebRequest requestfriend = WebRequest.Create(url);
- WebResponse responsefriend = requestfriend.GetResponse(); ( This is where it blows)
- Stream streamResponse = responsefriend.GetResponseStream();
- StreamReader streamReaderResponse = new StreamReader(streamResponse, encode);
- jsonResult = streamReaderResponse.ReadToEnd();
- return jsonResult.ToString();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement