Page 1 of 1

Upload via Curl/PHP

Posted: Sat Jun 09, 2007 7:25 pm
by rygonet
So I have a script that connects to a remote site in my web network, and uploads an image via an online form that is setup on the remote site.

The script connects to the remote webpage just fine (via curl) and grabs the information fine. I have an image (/images/image.jpg) that I want to upload (via curl) through the form on the remote webpage.

Is this at all possible?

-Ryan

Posted: Sat Jun 09, 2007 8:25 pm
by feyd
Yep.

Posted: Sat Jun 09, 2007 8:27 pm
by rygonet
Let me rephrase the question: How?

Posted: Sat Jun 09, 2007 8:43 pm
by feyd
Read through the curl_setopt() options.