title: Curl "Could not resolve host: POST" ASP.NET Web service
body: <p>I created a simple ASP.NET Web service using Visual studio 2008. The Web service works fine when I use it via IE 8, but I didn't manage to consume it using curl.</p>
  
  <p>Basically the "welcome page" of the Web service indicates the following example for a POST request: </p>
  
  <p>Request format:</p>
  
  <pre><code>POST /Service1.asmx/TestService HTTP/1.1
  Host: IP_ADDRESS
  Content-Type: application/x-www-form-urlencoded
  Content-Length: length
  </code></pre>
  
  <p>Response example:</p>
  
  <pre><code>HTTP/1.1 200 OK
  </code></pre>
  
  <p>This is what I'm trying to do using the following curl command:</p>
  
  <pre><code>curl POST http://IP_ADDRESS/Service1.asmx/TestService  -d ""
  </code></pre>
  
  <p>But I get the following error message:</p>
  
  <pre><code>curl: (6) Could not resolve host: POST
  </code></pre>