title: Posting Gzipped data with curl
body: <p>im trying to use the system curl to post gzipped data to a server but i keep ending up with strange errors</p>
  
  <pre><code>`curl -sS -X POST -H "Content-Type: application/gzip" --data-binary $data $url`
  </code></pre>
  
  <p>gives </p>
  
  <pre><code>curl: no URL specified!
  </code></pre>
  
  <p>and</p>
  
  <pre><code>`curl -sS -X POST -H "Content-Type: application/gzip" --data-binary "$data" $url`
  </code></pre>
  
  <p>gives </p>
  
  <pre><code>sh: -c: line 0: unexpected EOF while looking for matching `"'
  sh: -c: line 1: syntax error: unexpected end of file
  </code></pre>