title: How to pass a variable in a curl command in shell scripting
body: <p>I have a curl command:</p>
  
  <pre><code>curl -u ${USER_ID}:${PASSWORD} -X GET 'http://blah.gso.woo.com:8080/rest/job-execution/job-details/${job_id}'
  </code></pre>
  
  <p>The variable <code>job_id</code> has a value in it, say, 1160. When I execute the curl command in shell it gives me the following error:</p>
  
  <pre><code>{"message":"Sorry. An unexpected error occured.", "stacktrace":"Bad Request. The request could not be understood by the server due to malformed syntax."}
  </code></pre>
  
  <p>If I pass the number '1160' directly in the command, as shown below, the curl command works.</p>
  
  <pre><code>curl -u ${USER_ID}:${PASSWORD} -X GET 'http://blah.gso.woo.com:8080/rest/job-execution/job-details/1160'
  </code></pre>
  
  <p>I want to be able to pass the value of the variable in the curl command.</p>