Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Reacting to Mojo::UserAgent Errors

by marto (Cardinal)
on Apr 17, 2018 at 03:42 UTC ( #1213038=note: print w/replies, xml ) Need Help??


in reply to Re^2: Reacting to Mojo::UserAgent Errors
in thread Reacting to Mojo::UserAgent Errors

"It would be nice if Mojo::UserAgent allowed the useragent details to be set, but that doesn't appear to be the case."

See transactor:

# Change name of user agent $ua->transactor->name('MyUA 1.0');

Here I used eval to catch errors. I'll check the situation you mention above at a sane hour.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2020-10-22 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (225 votes). Check out past polls.

    Notices?