title: Fetching page of url using luasocket and proxy
body: <p>So far, I have the following piece:</p>
  <pre><code>local socket = require &quot;socket.http&quot;
  client,r,c,h = socket.request{url = &quot;http://example.com/&quot;, proxy=&quot;&lt;my proxy and port here&gt;&quot;}
  for i,v in pairs( c ) do
    print( i, v )
  end
  </code></pre>
  <p>which gives me an output like the following:</p>
  <pre><code>connection  close
  content-type    text/html; charset=UTF-8
  location    http://www.iana.org/domains/example/
  vary    Accept-Encoding
  date    Tue, 24 Apr 2012 21:43:19 GMT
  last-modified   Wed, 09 Feb 2011 17:13:15 GMT
  transfer-encoding   chunked
  server  Apache/2.2.3 (CentOS)
  </code></pre>
  <p>which means that the connection established just <strong>perfectly</strong>. Now, I want to fetch the title of my <code>url's</code> using this <code>socket.http</code>. I searched previous SO questions and the <a href="http://w3.impa.br/%7Ediego/software/luasocket/http.html" rel="nofollow noreferrer">luasocket's http documentation</a>. but, I still have no idea on how to fetch/store the whole/part of the page in a variable and do something with it.</p>
  <p>Please help.</p>