title: Creating a raw HTTP request with sockets
body: <p>I would like to be able to construct a raw HTTP request and send it with a socket. Obviously, you would like me to use something like urllib and urllib2 but I do not want to use that.</p>
  
  <p>It would have to look something like this:</p>
  
  <pre><code>import socket
  
  tcpsoc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  tcpsoc.bind(('72.14.192.58', 80)) #bind to googles ip
  tcpsoc.send('HTTP REQUEST')
  response = tcpsoc.recv()
  </code></pre>
  
  <p>Obviously you would also have to request the page/file and get and post parameters</p>