In my code (C#) I'm using a WebRequest:
var request = WebRequest.Create(url);
For some reason this line takes about 2-3 seconds to run. I've looked for a solution, but couldn't find any for the creation of the request. I've tried different urls (http and https, google, etc.) but nothing seems to help. Did anyone else experience such a behavior? Can anyone explain what exactly is going on during the creation of the request? Any alternatives?
BTW - I'm on a 64bit Win 7 (Bootcamp)
Edit - measured 3.126 seconds with Stopwatch for the following code (wireless):
var request = WebRequest.Create("http://www.google.com");
On the same network, only wired, it took 0.01 seconds.
Thanks everyone!