[Webkit-unassigned] [Bug 82036] New: Soup HTTP backend does not send Content-Length in certain cases

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 23 01:59:11 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=82036

           Summary: Soup HTTP backend does not send Content-Length in
                    certain cases
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Platform
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: dominik.rottsches at linux.intel.com


The soup http backend does not send Content-Length on outgoing requests in certain cases. Especially striking for POST and PUT requests.

As far as I interpret the HTTP specification, 
http://tools.ietf.org/html/rfc2616#section-14.13
the content-length should be send whenever the message-body size can be determined at send time and if the particular type of method usually has a body / has body semantics defined - e.g. no Content-Length required for GET and HEAD requests.

Looking at the http/tests/xmlhttprequest/methods*.html cases,
it can be consistently found in the non-soup ports that on the POST cases, they all send a content-length.
They all don't send Content-Length on GET request.

We should make the libsoup backend behave more in line with spec and other browser implementations here.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list