You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2017/01/30 11:39:42 UTC

[Bug 60663] New: Sends "411 Content Length Required" reply to OPTIONS request with empty body

https://bz.apache.org/bugzilla/show_bug.cgi?id=60663

            Bug ID: 60663
           Summary: Sends "411 Content Length Required" reply to OPTIONS
                    request with empty body
           Product: Apache httpd-2
           Version: 2.4.25
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_http2
          Assignee: bugs@httpd.apache.org
          Reporter: jelmer@jelmer.uk
  Target Milestone: ---

When the h2 module is enabled and a client contacts Apache using HTTP/2, the
server will send back a 411 error when the OPTIONS method is used without a
body and without a Content-Length specified.

This is not the case for HTTP/1.1, and accessing the same resource over
HTTP/1.1 works fine.

https://tools.ietf.org/html/rfc7230#section-3.3.2 specifies that:

   A user agent SHOULD send a Content-Length in a request message when
   no Transfer-Encoding is sent and the request method defines a meaning
   for an enclosed payload body.  For example, a Content-Length header
   field is normally sent in a POST request even when the value is 0
   (indicating an empty payload body).  A user agent SHOULD NOT send a
   Content-Length header field when the request message does not contain
   a payload body and the method semantics do not anticipate such a
   body.

(SHOULD, not MUST)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 60663] Sends "411 Content Length Required" reply to OPTIONS request with empty body

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60663

Jelmer Vernooij <je...@jelmer.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jelmer@jelmer.uk

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 60663] Sends "411 Content Length Required" reply to OPTIONS request with empty body

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60663

Stefan Eissing <st...@eissing.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Stefan Eissing <st...@eissing.org> ---
Sorry for the late reply. Using curl, all seems fine:

curl -i --insecure -X OPTIONS https://test.example.org:12346/
HTTP/2 200 
date: Sat, 28 Apr 2018 11:22:38 GMT
server: Apache/2.5.1-dev (Unix) OpenSSL/1.0.2o
allow: POST,OPTIONS,HEAD,GET,TRACE
content-length: 0
content-type: httpd/unix-directory

Do you have any more information on how to generate the request? A server log
with 

LogLevel http2:trace2

might also help. Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 60663] Sends "411 Content Length Required" reply to OPTIONS request with empty body

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60663

Szőgyényi Gábor <sz...@freemail.hu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |szg0000@freemail.hu

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org