On Thursday 21 June 2001  1:39, Gisle Aas wrote:
> Phil Mitchell <[EMAIL PROTECTED]> writes:
> > Is there any way to tell LWP useragent to make its ftp requests in
> > passive mode? I am behind a firewall and active mode requests are just
> > hanging.
>
> LWP use Net::FTP to drive the ftp conversation with the server.
> Net::FTP enable passive mode by default if you set the FTP_PASSIVE
> environment variable to some true value.
>
> Regards,
> Gisle


Alternatively, you can disregard the FTP_PASSIVE variable and connect as below

my $ftp = Net::FTP->new("$host", Passive => 1)
$ftp->login($loginuser,$loginpass)

Cheers,

Dave

Reply via email to