From 231f771a70763b639fb77bf3940d5ae73a2b4920 Mon Sep 17 00:00:00 2001 From: Evan Chan Date: Mon, 9 Dec 2013 11:36:05 -0800 Subject: [PATCH] Add a note to use --data-binary curl option for text config inputs --- jobserver/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jobserver/README.md b/jobserver/README.md index 917cc253400..9489ae06eca 100644 --- a/jobserver/README.md +++ b/jobserver/README.md @@ -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: curl localhost:8090/jobs/5453779a-f004-45fc-a11d-a39dae0f9bf4