Closed CMCDragonkai closed 9 years ago
You can use --ignore-stdin
to tell HTTPie to not read from standard input even though it's redirected:
$ seq 1 | parallel -n0 "http --ignore-stdin httpbin.org/post url=http://google.com/"
More details: https://github.com/jakubroztocil/httpie#redirected-input
This works:
But this doesn't:
The result is:
It seems that by using a pipe with parallel, httpie is thinking that it's meant to take data from stdin/file, and won't take in the command like request data.
The
-n0
command makes parallel not pass any parameters to the command.