title: How to POST URL in data of a curl request
body: <p>I am trying to post two parameters using <code>curl</code>, <code>path</code> and <code>fileName</code>:</p>
  
  <pre><code>curl --request POST 'http://localhost/Service' --data "path='/xyz/pqr/test/'&amp;fileName='1.doc'"
  </code></pre>
  
  <p>I know something is wrong in this.
  I have to use something like URLEncode. I tried many things still no luck.</p>
  
  <p>Please give an example how can I post the url in data of curl request.</p>