title: SHOUTcast fetch request denied every time with 404
body: <h2>Code</h2>
  
  <pre><code>function radiotest(host,port)
      local rstr="Online"
      local sock, err = socket.tcp()
      if not sock then
          return "Failed"
      end
      sock:settimeout(1)
      local res, err = sock:connect(host, port)
      if not res then
          return "offline"
      else
          sock:settimeout(1)
          sock:send("GET /index.html HTTP/1.0\r\n UserAgent: SHOUTcast Song Status \r\n Accept: */*\r\n\r\n")
          sock:settimeout(3)
          local data=sock:receive('*a')
          sock:close()
          print(data)
          -- Further processing content here
      end
  end
  print( radiotest( "10.*.*.*", 1234 ) )
  </code></pre>
  
  <p>The above socket connection returns me:</p>
  
  <pre><code>ICY 404 Resource Not Found
  icy-notice1:&lt;BR&gt;SHOUTcast Distributed Network Audio Server/win32 v1.9.7&lt;BR&gt;
  icy-notice2:The resource requested was not found&lt;BR&gt;
  </code></pre>
  
  <p>I think the problem is in my headers listing, but I'm unable to trace it.</p>
  
  <p>The page opens fine in all browsers(Opera does need to be masked as another browser; otherwise it just keeps on downloading all songs).</p>
  
  <p>I've tried using following strings inside <code>sock:send()</code></p>
  
  <ul>
  <li><code>GET /index.html HTTP/1.0\r\n UserAgent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n</code></li>
  <li><code>GET /index.html HTTP/1.0\r\n UserAgent: Opera/9.80 (Windows NT 6.1; Win64; x64) Presto/2.12.388 Version/12.12\r\n\r\n</code></li>
  <li><code>GET /index.html HTTP/1.0\r\n UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17\r\n\r\n</code></li>
  </ul>
  
  <p>I'm totally stuck at this part. How do I fetch the page using <code>socket.tcp()</code>?</p>