How about:
#!/usr/bin/perl use strict; use warnings; use feature 'say'; use Mojo::UserAgent; my $url = 'https://www.sec.gov/Archives/edgar/daily-index/2023/QTR3/fo +rm.20230712.idx'; my $ua = Mojo::UserAgent->new; $ua->transactor->name('COMPANY youremail@email.com'); say $ua->get( $url )->res->body; # or $ua->get( $url )->res->save_to('derp.txt');
In reply to Re^11: HTTP response: 400 Bad Request
by marto
in thread HTTP response: 400 Bad Request
by JoeJohnston
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |