good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: LWP and POST (Oh no, not again)by gildir (Pilgrim) |
on Dec 13, 2001 at 19:32 UTC ( [id://131633]=note: print w/replies, xml ) | Need Help?? |
Try it this way:
You must set proper content type. And I just can't figure out why are you trying to base64 encode the file. Without the headers is base64 encoding pointless. If server does not support direct upload of picture this way, you should probably encode it as a part of HTML form. Use content type of 'multipart/form-data' and you should probably use some (MIME?) modules to build up a content with proper headers.
In Section
Seekers of Perl Wisdom
|
|