content_length

2009-11-24 Thread Ryan Perry
How do I get the content length of the request body? or the equivalent of $ENV{'CONTENT_LENGTH'} ? my $current_read = $r-read($current_buffer, $current_length - $current_remaining, $current_remaining); Thanks!

Re: content_length

2009-11-24 Thread Adam Prime
Ryan Perry wrote: How do I get the content length of the request body? or the equivalent of $ENV{'CONTENT_LENGTH'} ? my $current_read = $r-read($current_buffer, $current_length - $current_remaining, $current_remaining); Thanks! Content-Length is just a header, so you get

[mp2] CONTENT_LENGTH input filter

2004-05-03 Thread Micah Johnson
Hi, I'm trying to use a pre-existing CGI script without modification. I'd like to use an input filter to tack on something to the POST string. My filter adds the string, but the CGI sees a CONTENT_LENGTH environmental variable that corresponds to its original length. How do I update

Re: [mp2] CONTENT_LENGTH input filter

2004-05-03 Thread Stas Bekman
Micah Johnson wrote: Hi, I'm trying to use a pre-existing CGI script without modification. I'd like to use an input filter to tack on something to the POST string. My filter adds the string, but the CGI sees a CONTENT_LENGTH environmental variable that corresponds to its original length. How do

AuthenNTLM, MSIE and POST ( CONTENT_LENGTH = 0)

2004-03-22 Thread Jesper Krogh
, mod_negotiation, mod_mime, mod_log_config, mod_env, http_core AuthenNTLM 0.23 or 2.05 (Both works fine at normal authentification) Most scripts works fine, PHP CGI and perl CGI scripts normally, but when a MSIE browser does a POST to the setup, the environmentvariable CONTENT_LENGTH is set to 0

Re: AuthenNTLM, MSIE and POST ( CONTENT_LENGTH = 0)

2004-03-22 Thread Stephen Quinney
a POST to the setup, the environmentvariable CONTENT_LENGTH is set to 0 making some CGI scripts that depends on that fail. The error_log information when it happens: Malformed multipart POST I have had some problems like this in the past with POST and IE that seem to be connected to HTTP1.1

Re: AuthenNTLM, MSIE and POST ( CONTENT_LENGTH = 0)

2004-03-22 Thread Jesper Krogh
I gmane.comp.apache.mod-perl, skrev Stephen Quinney: I have had some problems like this in the past with POST and IE that seem to be connected to HTTP1.1 keepalive settings. Coincidentally, it seems those who run the Linux Weekly News site (http://lwn.net) have been having a very similar