in reply to POST file through REST::Client [SOLVED]


"Authorization" => 'Basic ' .encode_base64($options{username} . ':' . $options{password}) };

You should be using the credentials method. Why aren't you using the credentials method?

Update2: After a lot of experimentation and research on the web I found that I a missing the body, I have added the body but now something else is missing. I get the following error: Multipart form parse error - Invalid boundary in m +ultipart: None"

Where does the error come from?

I dont understand what you're trying to do with that code snippet. You dont seem to be doing the same thing as Re: PUT a Multipart request in PERL ( ). Have you printed out the resulting request to see what it looks like?