This exception is a problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kevinyy
    New Member
    • Jul 2008
    • 77

    This exception is a problem

    When i pass certain request through:
    Code:
    WebResponse response = (WebResponse)WebRequest.Create(url).GetResponse();
    Stream responsestream = response.GetResponseStream();
    I sometimes get this problem: "The server committed a protocol violation. Section=Respons eStatusLine"
    =(
    i currently have this executing a line before the webresponse line(above):
    Code:
    System.Net.Configuration.HttpWebRequestElement wr = new System.Net.Configuration.HttpWebRequestElement();
                wr.UseUnsafeHeaderParsing = true;
    (im not sure it that actually works/affects my webrequest/response)

    but i am completely stumped on how to fix this problem...pleas e guide me
  • Kevinyy
    New Member
    • Jul 2008
    • 77

    #2
    Ive ask a few other people and they dont know either, please if anyone has delt with this and knows how to resolve it, that would be great!

    Comment

    Working...