Skip to content

Commit

Permalink
Add a note to use --data-binary curl option for text config inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Chan committed Dec 9, 2013
1 parent 37f0297 commit 231f771
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jobserver/README.md
Expand Up @@ -45,6 +45,11 @@ server will create its own SparkContext, and return a job ID for subsequent quer
} }
}⏎ }⏎


NOTE: If you want to feed in a text file config and POST using curl, you want the `--data-binary` option, otherwise
curl will munge your line separator chars. Like:

curl --data-binary @my-job-config.json 'localhost:8090/jobs?appNam=...'

From this point, you could asynchronously query the status and results: From this point, you could asynchronously query the status and results:


curl localhost:8090/jobs/5453779a-f004-45fc-a11d-a39dae0f9bf4 curl localhost:8090/jobs/5453779a-f004-45fc-a11d-a39dae0f9bf4
Expand Down

0 comments on commit 231f771

Please sign in to comment.