i want to write a script which post a form automatically.
it is not a spammer!
there is a picture field in form.
i want to write the script with php and using curl() function.
how can i implement file uploading?
and is the php suitable for this purpose? i mean form posting?
i want to write a script which post a form automatically. it is not
Share
To upload a file that’s on your server, yes, curl can do the trick.
You’ll want to use the
CURLOPT_POSTFIELDSoption, passing it to thecurl_setoptfunction (quoting) :Not tested, but I suppose that something like this should work :