Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^7: LWP and Mechanize

by pryrt (Abbot)
on May 21, 2022 at 22:51 UTC ( [id://11144063]=note: print w/replies, xml ) Need Help??


in reply to Re^6: LWP and Mechanize
in thread LWP and Mechanize

know LWP:: UserAgent, but I cannot figure out how to set it up. Thanks

The method agent in that module is the way to change the user agent string.

As to what the contents of the string should be, I cannot say, and it is not a Perl-related question. The author of the code that is trying to access the SEC files (that is to say, you) should read the documentation that the SEC provides that explains the contents of the user agent string needs to have in order to be in compliance with their terms of service. They link to that documentation in the error message that you now know how to see in its entirety. Good luck.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-16 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found