Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-T not supported #15

Open
AlexNodex opened this issue Aug 31, 2018 · 2 comments
Open

-T not supported #15

AlexNodex opened this issue Aug 31, 2018 · 2 comments

Comments

@AlexNodex
Copy link

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

@ghost
Copy link

ghost commented Oct 15, 2019

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);

@acedigibits
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants