user985569
user985569

Reputation:

VB.NET Get Response header

So, I want to get a "Location" header from response using

System.Net.HttpWebResponse

. How?

Upvotes: 1

Views: 6825

Answers (1)

luqi
luqi

Reputation: 2909

Is this what you are looking for? http://msdn.microsoft.com/en-us/library/system.net.httpwebresponse.headers.aspx#Y100

Dim myHttpWebResponse As HttpWebResponse = CType(myHttpWebRequest.GetResponse(), HttpWebResponse)
myHttpWebResponse.Headers("Server");

Upvotes: 3

Related Questions