title: Using Environment Variables in cURL Command - Unix
body: <p>My question is very simple. I want to use environment variables in a cURL command sth similar to this:</p>
  
  <pre><code>curl -k -X POST -H 'Content-Type: application/json' -d '{"username":"$USERNAME","password":"$PASSWORD"}' 
  </code></pre>
  
  <p>When I run the command $USERNAME is passed to the command as a "$USERNAME" string not the value of the variable. Is there a way to escape this situation?</p>
  
  <p>Thanks.</p>