title: What is wrong with my GET request?
body: <p>Sorry to bother with something that should be easy.</p>
  
  <p>I have this HTTP GET request:</p>
  
  <pre><code>GET /ip HTTP/1.1
  Host: httpbin.org
  Connection: close
  Accept: */*
  User-Agent: Mozilla/4.0 (compatible; esp8266 Lua; Windows NT 5.1)
  </code></pre>
  
  <p>When I send this request via my ESP8266 it returns a 404 error:</p>
  
  <pre><code>HTTP/1.1 404 Not Found
  Date: Fri, 04 Sep 2015 16:34:46 GMT
  Server: Apache
  Content-Length: 1363
  X-Frame-Options: deny
  Connection: close
  Content-Type: text/html
  </code></pre>
  
  <p>But when I (and you) go to <code>http://httpbin.org/ip</code> it works perfectly!</p>
  
  <p>What is wrong?</p>
  
  <p>DETAILS</p>
  
  <p>I construct my request in Lua:</p>
  
  <pre><code>conn:on("connection", function(conn, payload)
      print('\nConnected')
      req = "GET /ip"
      .." HTTP/1.1\r\n"
      .."Host: httpbin.org\r\n"
      .."Connection: close\r\n"
      .."Accept: */*\r\n"
      .."User-Agent: Mozilla/4.0 (compatible; esp8266 Lua; Windows NT 5.1)\r\n"
      .."\r\n"
      print(req)
      conn:send(req)
  end)
  </code></pre>
  
  <p>And if I use another host (<a href="http://benlo.com/esp8266/esp8266QuickStart.html" rel="nofollow">given is this example</a>) it works:</p>
  
  <pre><code>conn:on("connection", function(conn, payload)
      print('\nConnected')
      conn:send("GET /esp8266/test.php?"
      .."T="..(tmr.now()-Tstart)
      .."&amp;heap="..node.heap()
      .." HTTP/1.1\r\n"
      .."Host: benlo.com\r\n"
      .."Connection: close\r\n"
      .."Accept: */*\r\n"
      .."User-Agent: Mozilla/4.0 (compatible; esp8266 Lua; Windows NT 5.1)\r\n"
      .."\r\n")
  end)
  </code></pre>