title: Why is curl treating my username like a URL?
body: <p>I'm trying to figure out what headers are being sent by a remote server, using cURL to view the request. The remote server uses http basic authentication.</p>
  
  <p>I make the request:</p>
  
  <pre><code>curl --basic -D -u 'username' https://my.server.location
  </code></pre>
  
  <p>And it outputs:</p>
  
  <pre><code>curl: (6) Could not resolve host: username
  </code></pre>
  
  <p>Before then outputting the response from the server as if I tried to access without providing credentials.</p>
  
  <p>Why is curl ignoring the commandline -u argument and attempting to make a request to my username, as if it was a URL?</p>