Hi,
I have done more research regarding this issue and found some useful
articles for your reference.
HOW TO: Make a GET Request by Using C# .NET
http://support.microsoft.com/default.aspx?scid=kb;en-us;307023
HOW TO: Make a GET Request by Using Visual Basic .NET
http://support.microsoft.com/default.aspx?kbid=301102
We can also add headers with the specified name and value. Please refer to
the following URL.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemnetwebheadercollectionclassaddtopic2.asp
"...
Try
'Create a web request for "
www.msn.com".
Dim myHttpWebRequest As HttpWebRequest =
CType(WebRequest.Create("
http://www.msn.com"), HttpWebRequest)
'Get the headers associated with the request.
Dim myWebHeaderCollection As WebHeaderCollection =
myHttpWebRequest.Headers
Console.WriteLine("Configuring Webrequest to accept Danish and
English language using 'Add' method")
'Add the Accept-Language header (for Danish) in the request.
myWebHeaderCollection.Add("Accept-Language:da")
'Include English in the Accept-Langauge header.
myWebHeaderCollection.Add("Accept-Language:en;q" + ChrW(61) + "0.8")
'Get the associated response for the above request.
Dim myHttpWebResponse As HttpWebResponse =
CType(myHttpWebRequest.GetResponse(), HttpWebResponse)
..."
I hope it helps.
Best regards,
Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.