How to create a request to a URL and write the response to the page
I believe I've done this before, but I can't seem to remember how:( HttpWebRequest request = (HttpWebRequest)WebRequest.Create("www.example.com"); request.Method = "GET"; HttpWebResponse response = (HttpWebResponse)request.GetResponse(); How do I then write the response to the page? Thanks a lot. The below example demonstrates how it can be done: string myRequest = "abc=1&pqr=2&lmn=3"; string myResponse=""; string myUrl = "Where you want to post data"; System.IO.StreamWriter myWriter = null;// it will open a http connection with provided url System.Net.HttpWebRequest objRequest = (System.Net