title: curl: pass a named parameter from stdin
body: <p>I have a web service that expects some parameters. I want to pass one of these parameters (named "data") to curl via stdin.
  I tried</p>
  
  <pre><code>echo -n "some data" | curl -d  x="foo" -d y="bar" -d data=@- "http://somewhere"
  </code></pre>
  
  <p>which doesn't work, as the value of data then is "@-" instead of "some data".</p>
  
  <p>Is it possible to use the @ in curl to associate the input from stdin with a specific parameter?</p>
  
  <p>edit: My goal is to chain multiples web services so the data I pass will be the output of another curl call.</p>