seamonk has asked for the wisdom of the Perl Monks concerning the following question:
my per code looks like this:-----------------------------596088922920 Content-Disposition: form-data; name="Filedata"; filename="mypic.gif" Content-Type: image/gif GIF87aX# *shorted* ¡§\ -----------------------------596088922920 Content-Disposition: form-data; name="session" 92384729384792384729384729384 -----------------------------596088922920 Content-Disposition: form-data; name="method" put -----------------------------596088922920--
sadly this gives me the error "Internal Server Error"... What am i doing wrong?use WWW::Mechanize; $agent = WWW::Mechanize->new( cookie_jar => {} ); $agent->post('http://www.kleiderkreisel.de/photo/ajax_photo_action', [ "Filedata" => ['mypic.gif' => 'C:\Pics\mypic.gif'], 'session' => '92384729384792384729384729384', 'method' => 'put' ]);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Error POSTing File in Perl
by thomas895 (Deacon) on Aug 16, 2014 at 19:38 UTC | |
Re: Error POSTing File in Perl
by linuxer (Curate) on Aug 17, 2014 at 09:42 UTC | |
Re: Error POSTing File in Perl (PUT)
by Anonymous Monk on Aug 17, 2014 at 09:15 UTC | |
by wrog (Friar) on Aug 18, 2014 at 10:12 UTC | |
Re: Error POSTing File in Perl
by GwenDragon (Novice) on Aug 18, 2014 at 09:47 UTC |