[Mono-bugs] [Bug 510963] New: HttpWebRequest: Request body is immediately sent for POST/PUT

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jun 8 11:16:32 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=510963


           Summary: HttpWebRequest: Request body is immediately sent for
                    POST/PUT
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: gert.driesen at pandora.be
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=296756)
 --> (http://bugzilla.novell.com/attachment.cgi?id=296756)
Repro

User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR
3.0.04506.30; .NET CLR 3.0.04506.590; .NET CLR 3.0.04506.648; .NET CLR
3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

When acting as a HTTP/1.1 client, we are immediately sending the request body
for the POST/PUT verb. We are sending the "Expect: 100-continue" header, but we
do not wait for the server response.

More details are in $8.2.3 of RFC 2616.

Reproducible: Always

Steps to Reproduce:
Compile and run the attached source code.
Actual Results:  
Received request:

POST /test/ HTTP/1.1
Content-Length: 7
Expect: 100-continue
Connection: keep-alive
Host: 127.0.0.1:8008

? bod

(followed by a timeout)

Expected Results:  
Received request:

POST /test/ HTTP/1.1
Host: 127.0.0.1:8008
Content-Length: 7
Expect: 100-continue
Connection: Keep-Alive

Received request body:

body

HTTP response body: body

-- 
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