[Catalyst] Content-Length: 0 on POSTs

Christopher H. Laco claco at chrislaco.com
Fri Sep 29 23:53:35 CEST 2006


Bill Moseley wrote:
> I've had two users now report that posting forms in SSL mode is not
> working.  Both times I've dumped the request headers and see that they
> are posting with a Content-Length: header of zero.
> 
> What happens is they just get the form back again.  That's expected
> because my form processing code assumes if there's no content
> (specifically, no valid token submitted) then it's not a valid form
> and just re-displays the form.
> 
> 
> This seems to be a case of this:
> 
>     http://support.microsoft.com/default.aspx?kbidƒ1167
> 
> Although in both cases it's been at an organization with an IT staff
> and the user claims the IT staff keeps their computers up to date.
> 
> I'm running Apache 2.0.54 on a front/back setup and catalyst is
> running under mod_perl.  The MS article claims this happens when
> reposting after the server resets the connection.  I can't see any
> reason Apache would be resetting the connection, so that doesn't
> really fit with the MS article.
> 
> It's an SSL connection, so I'm really only able to look at the request
> headers between my front and back servers.  So, I just have to trust
> that mod_proxy is not the one stripping the content length.
> 
> Anyone else familiar with this problem?  What else could I look at for
> debugging this?

I've suffered through this as well. In my case, it was a shit version of
CompuServe7 w/ a borked early version of Moz. In my case, this browser,
and some others will post 0 bytes if you try and disable the submit
button with javavscript (to prevent double clicks), then call
form.submit(), and only under SSL. In our case, since it was specific to
an old crappy version of COmpuserve, we simply told those people to
upgraded their junk.

It still happens to this about 3-5 times a week.
Welcome to the internet. :-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060929/e67b769e/attachment.pgp 


More information about the Catalyst mailing list