http://qs321.pair.com?node_id=1122237


in reply to PUT a Multipart request in PERL

I am using following code: typos and typos and typos and typos and typos and typos and typos

Hi xpert, see perlintro/perlquote and fix your quotes

It is generating following error:

Even if you fix the quotes the code still won't compile

If you fix that, https://metacpan.org/pod/HTTP::Request::Common#PUT-url says its like https://metacpan.org/pod/HTTP::Request::Common#GET-url and not like https://metacpan.org/pod/HTTP::Request::Common#POST-url meaning you have create a POST request and then alter it

Anyway, its more convenient to use WWW::Mechanize even when you have to HTTP::Request::Common manually :)