title: socket.http headers in lua
body: <p>I am using the <code>socket.http</code> module to send http request but I am unable to get all the response headers from the http request.</p>
  
  <p>Below is the sample code am using 
  I need to print all the response headers</p>
  
  <pre><code>Connection  close, TE
  Content-Length  210
  Content-Type    application/x-www-form-urlencoded
  Host    XXXX
  TE  trailers
  User-Agent  LuaSocket 3.0-rc1
  method  POST
  protocol    HTTP/1.1
  </code></pre>
  
  <h2>test.lua</h2>
  
  <pre><code>http = require("socket.http")
  header = { }
  
  local result,b,c,h = http.request{ url = "myurl", headers = header,method="POST" }
  for k,v in pairs(c) do print(k,v) end
  </code></pre>
  
  <p>This is the output am getting:</p>
  
  <pre><code>content-type    text/html; charset=UTF-8
  server  Apache/2.2.15 (CentOS)
  date    Tue, 16 Jun 2015 13:32:50 GMT
  connection  close
  content-length  348
  x-powered-by    PHP/5.4.35
  </code></pre>
  
  <p>But I need all the headers like </p>
  
  <pre><code>Connection  close, TE
  Content-Length  210
  Content-Type    application/x-www-form-urlencoded
  Host    XXXX
  TE  trailers
  User-Agent  LuaSocket 3.0-rc1
  method  POST
  protocol    HTTP/1.1
  </code></pre>