I'm trying to (PHP) cURL PUT a file from Amazon S3 to Vimeo using S3 stream wrapper (s3://...)
and getting the follow error:
curl_setopt_array(): cannot represent a stream of type tcp_socket/ssl as a STDIO FILE in [...]
Is there a way to cURL PUT a remote file? This are the curl opts being sent:
$curl_opts = array(
CURLOPT_PUT => true,
CURLOPT_INFILE => $file, // this refers to 's3://path-to-object'
CURLOPT_INFILESIZE => $size,
CURLOPT_UPLOAD => true,
CURLOPT_HTTPHEADER => array('Expect: ', 'Content-Range: replaced...')
);