Search code examples
c#httpwebrequesthttp-status-code-404

Webrequest.BeginGetResponse is slow - alternative to verifying destination exists before getting blocked on Async call?


I'm having this situation: webrequest.begingetresponse is taking too much time when the url is invalid

However I notice that the PING command doesn't take the same amount of time. Anyone know the equivalent .net call that ping is making?


Solution

  • Doh(!) System.Net.NetworkInformation.Ping()