Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 examining the Monastery: (3)
As of 2024-04-14 16:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found