Upload via Curl/PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rygonet
Forum Newbie
Posts: 3
Joined: Sat Jun 09, 2007 7:24 pm

Upload via Curl/PHP

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Yep.
rygonet
Forum Newbie
Posts: 3
Joined: Sat Jun 09, 2007 7:24 pm

Post by rygonet »

Let me rephrase the question: How?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Read through the curl_setopt() options.
Post Reply