Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: How can I capture the full header of a cgi script?

by sh1tn (Priest)
on Nov 29, 2007 at 13:58 UTC ( #653839=note: print w/replies, xml ) Need Help??


in reply to How can I capture the full header of a cgi script?

You may want to try WWW::Mechanize

#!/usr/bin/perl use strict; use warnings; use WWW::Mechanize; my $mech = WWW::Mechanize->new(); $mech->get("http://perlmonks.net"); my $headers = $mech->response->headers->as_string;


Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://653839]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2017-11-18 03:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?