adamsj has asked for the wisdom of the Perl Monks concerning the following question:
"Okay," I says to myself, "if we can't go through the proxy 'cause it thinks we're it instead of us, I can just take the proxy setting out, and the request will just whiz right through."
Instead, now the script dies while I'm stepping through it in the debugger. This bothers me.
my $list_request = HTTP::Request->new(GET => $source_dir); my $agent = LWP::UserAgent->new; $agent->protocols_allowed(['ftp', 'http']); #$agent->proxy('ftp' => 'http://www.nunya.biz:8080'); my $list_response = $agent->request($list_request); my @lines = grep (s!^<A HREF="^\w+($loaddate)($file_pattern)([\w.]*).* +$!$2$3!, (split(/\n/,$list_response->content)) );
Now, with the proxy setting taken out, it fails in the debugger on the next line.
I'm puzzled--any help?
They laughed at Joan of Arc, but she went right ahead and built it. --Gracie Allen
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP oddity
by trs80 (Priest) on Nov 13, 2002 at 00:40 UTC | |
by adamsj (Hermit) on Nov 13, 2002 at 18:12 UTC | |
|
Re: LWP oddity
by dws (Chancellor) on Nov 13, 2002 at 00:22 UTC | |
by adamsj (Hermit) on Nov 13, 2002 at 18:24 UTC |