title: how to quote/use variables in curl
body: <p>This works correctly</p>
  <pre><code>curl --header 'Accept: application/json' www.example.com
  </code></pre>
  <p>However, how to achieve this (I want header information in a variable):</p>
  <pre><code>h=&quot;--header 'Accept: application/json'&quot;                                                                                    
  curl $h www.example.com                                                                                                         
  curl: option --header 'Accept: application/json': is unknown
  curl: try 'curl --help' or 'curl --manual' for more information
  </code></pre>