Hallo All,
I have checked the mailing list and some where in 1999 a person had a
similar problem and i could not find any appropriate answer to the questions
that he had.
anyway, i will try to explain:
I want to write a Perl program to upload a file to a web server. Please
note that I'm NOT looking for a script to create a html form with <input
type=file> in it,
and I'm NOT looking for a cgi-script to handle the server side of the
upload.There exist a upload.c program on the webserver. What I'm looking for
is a standalone program that connects to a web server and uploads a file.
I tried to solve the problem using LWP::UserAgent.
my scrpit is as follows:
#!/usr/bin/perl -w
use LWP::UserAgent;
use HTML::Form;
use HTTP::Request;
use URI::URL;
$url = new URI::URL("http://some host");
$ua = new LWP::UserAgent;
$req = new HTTP::Request(POST, 'http://some host/navitune.html');
;
$resp = $ua->request($req)->as_string();
print "$resp\n";
this print out the whole html , i would like to fill the form in the HTML
and send it to the webserver.
I am pretty new in perl and would be grateful for ur help.
thanks
nandita
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- Re: html::form problems Nandita Shenvi
- Re: html::form problems zentara