Reputation:
So, I want to get a "Location" header from response using
System.Net.HttpWebResponse
. How?
Upvotes: 1
Views: 6825
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