in reply to Re: testing CGI.pm file uploads?
in thread testing CGI.pm file uploads?

Thanks chromatic, Your suggestion got me poking around to create such a file. Here's some starter code for someone else wanting to do this:
use HTTP::Request::Common; use LWP::UserAgent; # This form data will be printed to STDOUT my $r = POST 'http://www.perl.org/survey.cgi', Content_Type => 'form-data', Content => [ name => 'Gisle Aas', email => 'gisle@aas.no', gender => 'M', born => '1964', init => ["$ENV{HOME}/.profile"], ]; print $r->as_string;

-mark