RE: dotnet 1.1 SP1 - HttpWebRequest - Protocol Violation
From: cguthri_mc (cguthri_mc_at_discussions.microsoft.com)
Date: 09/02/04
- Next message: Mike Carr: "Re: Help with Run-Time Check Failure #0"
- Previous message: Rob Snell: "Re: no bytes returned on raw socket;trying to implement ping"
- In reply to: cguthri_mc: "dotnet 1.1 SP1 - HttpWebRequest - Protocol Violation"
- Next in thread: cguthri_mc: "RE: dotnet 1.1 SP1 - HttpWebRequest - Protocol Violation"
- Reply: cguthri_mc: "RE: dotnet 1.1 SP1 - HttpWebRequest - Protocol Violation"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 2 Sep 2004 14:05:03 -0700
Please if anyone has any information about this let me know. I have sniffed
the packets and seen the information is indeed being sent and comes back just
like normal, it is just that .NET seem incapable of recognizing a normal page
response like it used to be able to do. All test machines and customers who
did not install the 1.1 SDK can use my product with no problems. Here is the
code I use:
Dim strResult As String
strResult = "FAILED"
Dim URL As String = strURL
Dim objUri As New Uri(URL)
Dim request As HttpWebRequest = WebRequest.Create(objUri)
request.Method = "POST"
Dim d As Byte() = System.Text.Encoding.UTF8.GetBytes(strContents)
request.ContentLength = d.Length
request.Timeout = 400000
Dim newStream As Stream = request.GetRequestStream()
newStream.Write(d, 0, d.Length)
newStream.Close()
Dim response As HttpWebResponse = request.GetResponse()
Dim reader As StreamReader = New
StreamReader(response.GetResponseStream(), True)
strResult = reader.ReadToEnd
Return strResult
- Next message: Mike Carr: "Re: Help with Run-Time Check Failure #0"
- Previous message: Rob Snell: "Re: no bytes returned on raw socket;trying to implement ping"
- In reply to: cguthri_mc: "dotnet 1.1 SP1 - HttpWebRequest - Protocol Violation"
- Next in thread: cguthri_mc: "RE: dotnet 1.1 SP1 - HttpWebRequest - Protocol Violation"
- Reply: cguthri_mc: "RE: dotnet 1.1 SP1 - HttpWebRequest - Protocol Violation"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|