HTTP HEAD request with HttpClient in .NET 4.5 and C#

Use the SendAsync method with an instance of HttpRequestMessage that was constructed using HttpMethod.Head .

GetAsync, PostAsync, etc are convenient wrappers around SendAsync; the less common HTTP methods such as HEAD, OPTIONS, etc, don’t get a wrapper.

In short:

client.SendAsync(new HttpRequestMessage(HttpMethod.Head, url))

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)