Name: Anonymous 2010-05-05 6:02
How do I post image replies with libcurl? I've already gotten it to make text replies:
And yes I'm aware of all the negative stigma attached to libcurl. You have to start somewhere though. At least it's not the curl (command line tool).
#include <curl/curl.h>
int main(void)
{
CURL* easyhandle = curl_easy_init();
curl_easy_setopt(easyhandle, CURLOPT_URL, http://sys.4chan.org/lit/imgboard.php);
curl_easy_setopt(easyhandle, CURLOPT_POSTFIELDS, "resto=632537&name=Anonymous&email=sage&sub=libcurl&com=image replies&pwd=hello&mode=regist");
curl_easy_perform(easyhandle);
curl_easy_cleanup(easyhandle);
return 0;
}And yes I'm aware of all the negative stigma attached to libcurl. You have to start somewhere though. At least it's not the curl (command line tool).