How do I handle a file via html form with my perl script, so that I can post that file to a server?
I have an html form which requests a user to select a file for upload. I then post that form to a cgi page, which pulls out the data in name/value pairs using CGI.pm. I then take those pairs and post them to the server.
I do it this way, so that I can handle the xml response sent back from the server. My problem is that I do not know how to post files (gif, jpg, doc, etc).
Does anyone have any code showing how this is done. I guess using CGI::Simple or something?
Thanks!
Paul
I have an html form which requests a user to select a file for upload. I then post that form to a cgi page, which pulls out the data in name/value pairs using CGI.pm. I then take those pairs and post them to the server.
I do it this way, so that I can handle the xml response sent back from the server. My problem is that I do not know how to post files (gif, jpg, doc, etc).
Does anyone have any code showing how this is done. I guess using CGI::Simple or something?
Thanks!
Paul