Hi I am using cURL to upload pdf file to remote server with POST method.
I tried several variants, and got several different messages(errors), two most significant:
curl -X POST https://waapi.pepipost.com/api/v2/media/upload/ -H 'Authorization: Bearer myAuthorizationToken' -H 'Content-Type: document' "@C:\Users\Slomil\Desktop\UserGuide.pdf"
with the error curl: (3) Port number ended with '\'.
Also, I've tried to change address to '/' so new curl command looks like
curl -X POST https://waapi.pepipost.com/api/v2/media/upload/ -H 'Authorization: Bearer myAuthorizationToken' -H 'Content-Type: document' "@C:/Users/Slomil/Desktop/UserGuide.pdf"
and received error curl: (1) Protocol "@C" not supported or disabled in libcurl.
I also search for previous answers about that on stackoverflow, and tried to use that help as my new cURL command, and it was also unsuccessful.
Does someone perhaps know what can be the issue here? I thought that my address to the file is wrong.. but don't know how else should it be written in the command..Here I've changed only the addresses from "\" to "/", thinking that the address is the problem, maybe in those slashes.. Thank you very much!:)