title: cURL not sending file data
body: <p>I have a cURL call that I'm trying to use to send file data to a remote server.</p>
  
  <pre><code>curl -X POST -u username:password -d 'data=@/path/to/file.ext&amp;version=2&amp;action=Parse' http://fqdn.to.server.i.control/Parser.cgi
  curl -X POST -u username:password -d 'data=@localFile.ext&amp;version=2&amp;action=Parse' http://fqdn.to.server.i.control/Parser.cgi
  cat file.ext | curl -X POST -u username:password -d 'data=@-&amp;version=2&amp;action=Parse' http://fqdn.to.server.i.control/Parser.cgi
  </code></pre>
  
  <p>The file contents are URI encoded already. Using Perl and CGI on the server side.</p>
  
  <p>My problem is that when the server tries to access that "data" line, value I have is only "file.ext" - the path is stripped out and the file's contents are not used ($cgi->param("data") is just "file.ext", "localFile.ext" or "-" respectively).</p>
  
  <p>Any indication as to what I'm doing wrong?</p>