RE: PHP script not executing with empty POST when using chunked encoding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Nick,

In the PHP script (before the session is established, which I had previously thought was related to this fault) I had a line to write to a file if the page was accessed. This is not done when this error occurs, leaving me to think the PHP script is not being executed (but works fine otherwise). 

Is there a better way to find out?


-----Original Message-----
From: Nick Kew [mailto:nick@xxxxxxxxxxxx] 
Sent: 04 March 2013 13:19
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  PHP script not executing with empty POST when using chunked encoding

On Mon, 4 Mar 2013 07:49:30 -0500
Eric Covener <covener@xxxxxxxxx> wrote:

> On Mon, Mar 4, 2013 at 7:42 AM, Ashly Pridmore 
> <Ashly.Pridmore@xxxxxxxxxxxxxxxxx> wrote:
> > Hmm, so the problem is sending "content-length: 0" with "transfer-encoding" set to chunked?
> 
> The spec says T-E is ignored in this case.

The spec actually says the reverse:

4.4 Message Length
  3.  ...  If a message is received with both a
      Transfer-Encoding header field and a
      Content-Length header field, the latter
      MUST be ignored.

Perhaps the OP is seeing something (PHP?) waiting for input when it shouldn't.  Does it make any difference if you use mod_headers to inject a Connection: Close in the request and/or response?  If identical headers work fine with telnet, then it has to be something other than headers, like holding the connection.

--
Nick Kew

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux