Sending HTTP Requests from a C# program seems unnecessarily hard. I wrote a small helper class to deal with sending and timing GET requests: http://www.goldb.org/httpgetcsharp.html
You use it like this:
public class Program { static void Main(string[] args) { HTTPGet req = new HTTPGet(); req.Request("http://www.google.com"); Console.WriteLine(req.StatusLine); Console.WriteLine(req.ResponseTime); } }
Copyright © 2006-2008 Corey Goldberg
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.