justin423 has asked for the wisdom of the Perl Monks concerning the following question:
| https://www.sec.gov/Archives/edgar/data/1897245/0001493152-23-024253.txt | /temp/edgar/0001493152-23-024253
{ my $SQL = "select url,filename from linktable"; my $query = $dbh->prepare($SQL) or die "Prepare".$dbh->errstr; $query-> execute() or die "".$dbh->errstr; while (my $ref = $query->fetchrow_hashref()) { my $ua = LWP::UserAgent->new(timeout => 10); $ua->default_header('Accept-Encoding' =>$mess = HTTP::Message->new()); $ua->default_header( USER_AGENT =>'COMPANY 'email@email.com' ); #print "$row[0] $row[1]\n"; #Coming back blank, so $ref isn't being as +signed my $res = $ua->mirror( $ref[0], $ref[1] ); } $query->finish; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using a Fetchrow with LWP
by 1nickt (Canon) on Jul 19, 2023 at 00:24 UTC | |
by justin423 (Scribe) on Jul 19, 2023 at 00:42 UTC | |
by 1nickt (Canon) on Jul 19, 2023 at 00:57 UTC | |
|
Re: Using a Fetchrow with LWP
by 1nickt (Canon) on Jul 19, 2023 at 00:55 UTC | |
by justin423 (Scribe) on Jul 19, 2023 at 02:03 UTC | |
by justin423 (Scribe) on Jul 19, 2023 at 02:16 UTC | |
by justin423 (Scribe) on Jul 19, 2023 at 02:54 UTC | |
by marto (Cardinal) on Jul 19, 2023 at 07:00 UTC | |
by justin423 (Scribe) on Jul 19, 2023 at 11:12 UTC | |
by marto (Cardinal) on Jul 19, 2023 at 11:34 UTC | |
by marto (Cardinal) on Jul 19, 2023 at 11:37 UTC | |
|