Hello,

We are using Squid as transparent proxy. So our users report problems
with several AJAX application.

If "Content-Length" header is absent in POST request Squid sends error reply.

AFAIR according to
http://www.faqs.org/rfcs/rfc2616.html (Chapter 4.3 Message Body)
Header "Content-Length" is not not required.


   The presence of a message-body in a request is signaled by the
   inclusion of a Content-Length or Transfer-Encoding header field in
   the request's message-headers. A message-body MUST NOT be included in
   a request if the specification of the request method (section 5.1.1)
   does not allow sending an entity-body in requests. A server SHOULD
   read and forward a message-body on any request; if the request method
   does not include defined semantics for an entity-body, then the
   message-body SHOULD be ignored when handling the request.


Am I wrong ?

Why squid blocks POST/PUT without header "Content-Length" ?


Thanks in advance.

--
Regards,
Oleg

Reply via email to