title: Bash - Curl (6) couldn't resolve host issue
body: <p>I am having a problem with my bash script. It is producing an error of </p>
  
  <p><code>curl (6) couldn't resolve host</code></p>
  
  <p>What have I done wrong?</p>
  
  <p>The following is my bash script.</p>
  
  <pre><code>#!/bin/bash
  
  string="$(mysql -u root -p Company 'select name from HR')"
  url="http://www.company.com/company/hr/$string"
  
  curl -F $url
  </code></pre>