RE: dotnet 1.1 SP1 - HttpWebRequest - Protocol Violation

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: cguthri_mc (cguthri_mc_at_discussions.microsoft.com)
Date: 09/02/04


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



Relevant Pages

  • RE: dotnet 1.1 SP1 - HttpWebRequest - Protocol Violation
    ... *correction - All test machines and customers who ... did not install the 1.1 SDK *SP1* can use my product with no problems. ...
    (microsoft.public.dotnet.framework)
  • Transmitting but Not Receiving Packets on NIC
    ... Having some strange software issue with the PC. ... (I had to install this NIC ... statistics show that packets are being transmitted but "0" packets are ... I plugged 2 other PCs into the cable modem and both obtained IP ...
    (microsoft.public.windowsxp.network_web)
  • Re: [SLE] Re: How to play sound from the command line?
    ... You will find there all the multimedia packets which are missing from the standard SUSE distro, ... Download the packets you need for your version of SUSE and install them with rpm -ihv. ...
    (SuSE)
  • Re: Odd LAN problem with XP Pro
    ... it could be hardware settings such as nic and switch issue. ... There are zero received packets, ... > So I figure my on-board lan card is DOA and install a PC-Card NIC. ...
    (microsoft.public.windowsxp.network_web)
  • Re: can my password be sniffed in this situation ?
    ... >The following sounds very easy to "arrange" by a hacker, ... and packets directed specifically to your system's MAC address. ... Would the above instruction allow other RCN customers, ...
    (comp.security.misc)