How does one upload a file to another website by using Curl in PHP and get the response page?
The website: http://www.postto.me
Here's an example of how to upload a file. (First hit for "curl file upload example php".)
$post = array( "file_box"=>"@/path/to/myfile.jpg", ); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); $response = curl_exec($ch); ?>