Re: Using the post method for downloading a file

2004-03-11 Thread Octavian Rasnita
ED]> Sent: Thursday, March 11, 2004 3:56 PM Subject: Re: Using the post method for downloading a file > Octavian Rasnita wrote: > > > Hi all, > > > > I am fighting to create a simple script for downloading a file from a > > server, but I cannot do it. > [snip

Re: Using the post method for downloading a file

2004-03-11 Thread Doug Monroe
Octavian Rasnita wrote: Hi all, I am fighting to create a simple script for downloading a file from a server, but I cannot do it. [snip] 1. I don't know where I can put the form fields I want to use for the post method (r=300 ), see 'perldoc lwpcook' -->> 'POST' section my $req = HTTP::Request->n

Using the post method for downloading a file

2004-03-11 Thread Octavian Rasnita
Hi all, I am fighting to create a simple script for downloading a file from a server, but I cannot do it. I have tried: use LWP::UserAgent; my $ua = LWP::UserAgent->new(env_proxy=>0, timeout=>120, keep_alive=>1, ); my $request = HTTP::Request->new('POST', $url); my $response = $ua->request($req