Server Side Web Request
Here is how to read a web request in c#
Reference
using System.Net;
using System.IO;
Code
WebResponse temp=WebRequest.Create("http://www.google.co.uk").GetResponse();
Stream temp2 = temp.GetResponseStream();
StreamReader test = new StreamReader(temp2);
Response.Write(test.ReadToEnd());
test.Close();
Reference
using System.Net;
using System.IO;
Code
WebResponse temp=WebRequest.Create("http://www.google.co.uk").GetResponse();
Stream temp2 = temp.GetResponseStream();
StreamReader test = new StreamReader(temp2);
Response.Write(test.ReadToEnd());
test.Close();
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home