curl-to-php icon indicating copy to clipboard operation
curl-to-php copied to clipboard

-T not supported

Open AlexNodex opened this issue 7 years ago • 2 comments

curl -T foo.txt ... isn't supported

AlexNodex avatar Aug 31 '18 08:08 AlexNodex

Here is one example:

$f1 = fopen('message.txt', 'r');
$r1 = curl_init('smtps://smtp.gmail.com');
curl_setopt($r1, CURLOPT_MAIL_RCPT, ['[email protected]']);
curl_setopt($r1, CURLOPT_NETRC, true);
curl_setopt($r1, CURLOPT_READDATA, $f1);
curl_setopt($r1, CURLOPT_UPLOAD, true);
curl_exec($r1);

ghost avatar Oct 15 '19 11:10 ghost

curl -X PUT -H 'Content-Type: video/mp4'
-H "Content-Length: 8036821"
-T "/Users/kenh/Downloads/amazing_race.mp4"
"URL"

Kindly help me translating this -T to php . Have tried infile, infilesize but failed.

acedigibits avatar Jul 09 '20 19:07 acedigibits