Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: how to add a refer to LWP::UserAgent

by gellyfish (Monsignor)
on May 22, 2006 at 19:22 UTC ( [id://551013]=note: print w/replies, xml ) Need Help??


in reply to how to add a refer to LWP::UserAgent

You can set the Referer in the HTTP::Request object:

use HTTP::Request; use LWP::UserAgent; + my $agent = LWP::UserAgent->new(); + my $req = HTTP::Request->new(GET => 'http://localhost' ); + $req->referer('http://localhost/'); + my $response = $agent->request($req);

/J\

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-24 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found