Is there a way in command-line curl to POST or GET (insert your favorite HTTP method) data to a URL and include in the raw posted data header values instead of issuing the -H options?
For instance:
$curl --data-binary @- http://server.com/foo/bar <<EOF X-Foo: Foo X-Bar: Bar and a lot of random characters Accept-Encoding: bzip2 My-raw-binary-data-here... EOF