Have you looked at the CGI.pm docs?
There are two parts to uploading docs via a webpage. First, you have supply the
correct type of form on the webpage:
form method=post action=url/to/your/script enctype=multipart/form-data
input type=file name=myfile size=40
input type=submit value=upload
Hello,
I am interested in creating a Perl agent to log into a
website and download pages for me.
Basically I want to submit a form using this agent.
Thanks,
Hardik
__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
Hi experts out there !
I'm new to perl and experienced a problem when trying to run a program
capturing input and output from another prog using open2(); under UNIX it
runs correctly, but not under Windows. Is there a special handling of open2
on Windows or is there another equivalent function
Hardik Oza wrote:
Hello,
I am interested in creating a Perl agent to log into a
website and download pages for me.
Basically I want to submit a form using this agent.
LWP is the normal tool for accessing web pages via Perl script -
contained in libwww-perl bundle.
Check in .../perl/site/lib
That is two entirely separate things. Both of which I too have been trying
to figure out. As usual the documentation goes on at length, and yet
somehow never tells you what you want to know :)
In case someone wants to give an example, specifically, this page for the
HTML download:
Hello,
I am interested in creating a Perl agent to log into a
website and download pages for me.
Basically I want to submit a form using this agent.
Thanks,
Hardik
There's a simple example of doing a GET of a page at
http://www.gossland.com/course/cgi_use/requests.html
Once you've seen that,
I just wrote:
Once you've seen that, doing a POST of a form is only a little more involved. I don't
have an example of it online, but you should look up the CGI function make_form().
Make_form creates all the parameter, value pairs for the form submission.
Sorry, but the make_form function I
Michael D. Smith wrote:
That is two entirely separate things. Both of which I too have been
trying to figure out. As usual the documentation goes on at length, and
yet somehow never tells you what you want to know :)
In case someone wants to give an example, specifically, this page for
Take a look at the IPC::Open2 man page:
perldoc IPC::open2
Hope this helps.
Kind regards,
Trevor J. Joerges
$_=q;rrUSFWPSZK.ZKPFSHFT,rkvtuZbopuifsZQZibdl
rrqpxfsfeZcyZQ,,riuuq://xxx.%.dpn,ru~@%.dpn ,rrr8-)