I'm assuming you're using a CLR/Winforms setup.
If so, see http://www.codeproject.com/KB/IP/httpwebrequest_response.aspx for a good example (the example's in C#, so you'll have to convert the syntax, subbing :: for the C# . that indicates namespace resolution and -> for the . that indicates member variable).
HttpWebRequest is the class that is responsible for this type of action in .NET, so searching on that will get you some more resources (and of course MSDN has all of the member methods and variables delineated).
jonsca
Quantitative Phrenologist
5,621 posts since Sep 2009
Reputation Points: 1,165
Solved Threads: 581