![]() |
[perl] uploading a file using POST
hi there, i am trying to add a function to an IRC bot I am developing that allows me to upload graphs to an imagehost called picboost.com. It uses POST to allow you to upload pictures.
this is what i have so far: Code:
use LWP::UserAgent;thanks in advance, s0l1dsnak3123 ps. I am not fussed with what modules are used to upload the file. If I am using the wrong ones, or if you have more experience with a different module that can achieve the same task, no problem :) |
As far as I remember, you'll have to set the correct content type header manually.
Check "perldoc HTTP::Request::Common" for "form-data"; it contains several examples. |
Thanks very much :D
This did the trick: Code:
use LWP::UserAgent; |
| All times are GMT -5. The time now is 04:54 AM. |