Hand-written GET and POST http requests

Chaseshaw

Member
Joined
Apr 21, 2010
Messages
8
Programming Experience
Beginner
I'm working on an education piece of code and would like to know if there's a way to take vb.net, and hand-write in an http GET request, and have it spit back out the response.

i.e. I want to type:

GET http://www.google.com http/1.1\r\n
User-Agent: MyUserAgent

and have it spit back out the html it retrieves. Is this possible? or do I have to learn python or something lower-level?

thanks.
 
You can create an HttpWebRequest, configure it appropriately and then call its GetResponse method to execute the request and get the server's response as an HttpWebResponse object. You can construct GET and POST requests that way.
 
Back
Top