Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: LWP::UserAgent Bad and Forbidden requests

by tobyink (Abbot)
on Dec 15, 2011 at 21:06 UTC ( #943830=note: print w/replies, xml ) Need Help??


in reply to Re^2: LWP::UserAgent Bad and Forbidden requests
in thread LWP::UserAgent Bad and Forbidden requests

I agree that spoofing another user agent is an ugly hack, however setting an appropriate user agent is always a good idea:

my $ua = LWP::UserAgent->new(agent => 'MyApp/0.1');

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2018-07-20 18:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (439 votes). Check out past polls.

    Notices?