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

I see now. Can you tell me how to set up the user agent?

Replies are listed 'Best First'.
Re^5: LWP and Mechanize
by LanX (Saint) on May 21, 2022 at 22:06 UTC

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

        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.