Convert command lines cURL to PHP cURL
Can you help me convert this console lines to PHP-example?
curl -v --request POST \
-H "Authorization: Bearer 2v8q2bc6uvxtgghwmwvnvcp4" \
--upload-file ~/Desktop/test.txt \
https://acme.egnyte.com/pubapi/v1/fs-content/Shared/\
Documents/test.txt
In general I know how to do it, but I can't understand how to send
"--upload-file" param. Help me please if you can and sorry for my English.
No comments:
Post a Comment