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($request); my $content = $response->content; 1. I don't know where I can put the form fields I want to use for the post method (r=300 ), and I also don't know how to get the file name of the file given by the server, in order to use that name for the downloaded file. Thank you very much for help. Teddy