HTTPclient and X-AuthKey

Topics: Web Api
Aug 6, 2011 at 5:48 PM

Hi,

How do I set X-AuthKey using HTTPClient?

Thanks,

Mahesh.

Aug 6, 2011 at 6:41 PM

I've done it like this:

 

Using client As New HttpClient(...)
    client.DefaultRequestHeaders.Add("X-AuthKey", "12345")

    ' ... now make your request ...
End Using