Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 avoiding work at the Monastery: (11)
As of 2018-02-21 15:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (283 votes). Check out past polls.

    Notices?