Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

content_length

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


rperry at womenshealth

Nov 24, 2009, 1:25 PM

Post #1 of 2 (539 views)
Permalink
content_length

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!


adam.prime at utoronto

Nov 24, 2009, 1:32 PM

Post #2 of 2 (491 views)
Permalink
Re: content_length [In reply to]

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 it through headers_in.

mp2:

http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_headers_in_

mp1:

http://perl.apache.org/docs/1.0/api/Apache.html#_r_E_gt_headers_in

Adam

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.