title: Passing variables (containing spaces) to curl --data field
body: <p>Arguments containing spaces will not properly pass to the curl command.
  Quotes are not passed correctly in the --data field.</p>
  
  <p>If I just echo the variable 'curlData' that I use in the curl command I get everything as it should be; ex :</p>
  
  <pre><code>$echo $curlData
  '{"name":"jason","description","service"}'
  </code></pre>
  
  <p>I don't understand why curl dont expend this 'curlData' variable as expected:</p>
  
  <pre><code>curl --data '{"name":"jason","description","service"}'
  </code></pre>
  
  <p>Here's a sample of my code:</p>
  
  <pre><code>read -p "Name : " repoName
  read -p "Description []: " repoDescription
  
  curlData="'"{'"'name'"':'"'$repoName'"','"'descripton'"':'"'$repoDescription'"'}"'"
  
  curl --data $curlData $apiURL 
  </code></pre>
  
  <p>And the error:</p>
  
  <pre><code>curl: (3) [globbing] unmatched close brace/bracket in column 26
  </code></pre>
  
  <p>Thank your for your help, I feel i'm in Quote-ception right now.</p>