in reply to http upload simulating browser
you should use CODE tag.set content-type to multipart/form-data
use arrayref to indicate file upload
File uploading via LWP is done like this (quote from perldoc: HTTP::Request::Common)
the point isPOST '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"], ]
--
Tatsuhiko Miyagawa
miyagawa@cpan.org
|
---|
In Section
Seekers of Perl Wisdom