title: Correct curl command for uploading local file to url
body: <p>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:<br></p>
  <pre><code>curl -X POST https://waapi.pepipost.com/api/v2/media/upload/ -H 'Authorization: Bearer myAuthorizationToken' -H 'Content-Type: document' &quot;@C:\Users\Slomil\Desktop\UserGuide.pdf&quot; 
  </code></pre>
  <p>with the error <code>curl: (3) Port number ended with '\'</code>.
  Also, I've tried to change address to '/' so new curl command looks like<br></p>
  <pre><code>curl -X POST https://waapi.pepipost.com/api/v2/media/upload/ -H 'Authorization: Bearer myAuthorizationToken' -H 'Content-Type: document' &quot;@C:/Users/Slomil/Desktop/UserGuide.pdf&quot;
  </code></pre>
  <p>and received error <code>curl: (1) Protocol &quot;@C&quot; not supported or disabled in libcurl</code>.<br>
  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.<br> 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 <code>&quot;\&quot;</code> to <code>&quot;/&quot;</code>, thinking that the address is the problem, maybe in those slashes.. Thank you very much!:)</p>