 <p>Put an @ before the jar file path as below:</p> <pre><code>curl --data-binary @/opt/hadoop/spark-jobserver/job-server-api/target/scala-2.10/job-server-api_2.10-0.6.1-SNAPSHOT.jar localhost:8090/jars/test </code></pre>