[Mono-bugs] [Bug 508027] New: HttpWebRequest.BeginGetRequestStream throws ProtocolViolationException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 28 19:36:36 EDT 2009


User bassam at symform.com added comment

           Summary: HttpWebRequest.BeginGetRequestStream throws
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.0.x
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: bassam at symform.com
         QAContact: mono-bugs at lists.ximian.com
                CC: gonzalo at novell.com
        Depends on: 465613
          Found By: Development

+++ This bug was initially created as a clone of Bug #465613 +++

Description of Problem:
HttpWebRequest.BeginGetRequestStream throws ProtocolViolationException. This
behavior is different from HttpWebRequest implementation on .NET, and prohibits
scenarios where KeepAlive and Buffering is not desired.

Steps to reproduce the problem:
            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(new
            request.Method = "POST";
            request.ProtocolVersion = HttpVersion.Version11;
            request.KeepAlive = false;
            request.AllowWriteStreamBuffering = false;
            request.ContentLength = 45;

            request.BeginGetResponse(null, null);

Actual Results:
ProtocolViolationException saying that Content Length has not been set.

Expected Results:
No exception thrown.

How often does this happen? 
Every time.

Additional Information:
This is similar to bug #465613, however it happens on the path of GetResponse.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list