Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How to read request headers?

by grep (Monsignor)
on Jul 19, 2008 at 23:34 UTC ( [id://698861]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print $ENV{HTTP_CONTENT_RANGE};
    
  2. or download this
    use warnings;
    use strict;
    ...
    print Dumper \%ENV;
    print '</pre>';
    print "<br>Content-Range: ",$ENV{HTTP_CONTENT_RANGE};
    
  3. or download this
    use warnings;
    use strict;
    ...
    $req->header( 'Content-Range' => 'bytes 0-499/500' );
    my $resp = $ua->request($req);
    print  $resp->{_content};
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://698861]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-23 18:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found