Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use warnings; use strict; use CGI qw/:standard/; use LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->agent("googlebot.com "); # Create a request my $req = HTTP::Request->new(GET => 'http://dragcave.ath.cx/viewdragon +/Vjwf'); $req->header('Referer', 'http://www.google.com'); $reg->agent('testing'); print header, start_html(); print "done";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Faking referer with LWP::UserAgent
by erroneousBollock (Curate) on Oct 06, 2007 at 03:39 UTC | |
by Anonymous Monk on Oct 06, 2007 at 03:51 UTC | |
by erroneousBollock (Curate) on Oct 06, 2007 at 03:57 UTC | |
by ikegami (Patriarch) on Oct 06, 2007 at 03:57 UTC |