Francis:
 According to 
http://aspn.activestate.com/ASPN/Reference/Products/ActivePerl/site/lib/HTTP/Request/Common.html,
 I don't need to add multipart. I add it anyway and I get the same result, that is my 
upload file can't be over 10K.
Thanks
jack
  Francis Turner <[EMAIL PROTECTED]> wrote: 
Jack Yang wrote:



> Here is the code



> 
> my $response = $agent->request( 
> POST 'http://www.upload.com/upload.pl', Content_Type
> => 'form-data', Content => [ Button => 'Submit', 
> myFile => ["./$file",$file ], ]
> );


Don't you need a content type of multipart/ as well?

i.e. Content_Type => 'multipart/form-data' not Content_Type => 'form-data'

Francis
-- 
Francis Turner, CIO Juelich Enzyme Products GmbH
http://www.juelich-enzyme.com/ +49-173-291-7278

If you're not part of the solution, you're part of the precipitate.
-- Henry J. Tillman





---------------------------------
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctionsfor all of your holiday gifts!

Reply via email to