title: Passing Bash Variable to CURL
body: <p>when i give the values like this it works :</p>
  
  <pre><code>curl --silent \ --insecure \ -X POST \ -d '{"Name" : "Vikram"}' \ -H "Content-Type: application/json" \ $restUrl
  </code></pre>
  
  <p>but when i give it like this :</p>
  
  <pre><code>post="'{\"Name\" : \"Vikram\"}'"    
  echo $post   // Prints '{"Name" : "Vikram"}'
  echo ${post} // Prints '{"Name" : "Vikram"}'
  </code></pre>
  
  <p>but the following does not work and throws an 400 error:</p>
  
  <pre><code>curl --silent \ --insecure \ -X POST \ -d ${post} \ -H "Content-Type: application/json" \ $restUrl
  </code></pre>