title: ruby 1.9.3 simple GET request to unicorn through socket
body: <p>Now I try to connect to my socket cretaed by unicorn with this code</p>
  
  <pre><code>require 'socket'
  
  def foo
    socket = UNIXSocket.new("path_to_socket/tmp/unicorn.sock")
  
    data = "GET /time HTTP/1.1\n" 
    data &lt;&lt; "Connection: Close\n" 
    data &lt;&lt; "User-Agent: Mozilla/5.0\n" 
    data &lt;&lt; "Accept: */*\n" 
    data &lt;&lt; "Content-Type: application/x-www-form-urlencoded\n" 
    data &lt;&lt; "\n\r\n\r"
  
    socket.puts(data)
  
    while(line = socket.gets) do
      puts line
    end 
  end
  
  foo
  </code></pre>
  
  <p>But always get a "HTTP/1.1 400 Bad Request"</p>
  
  <p>Please, can any body say what I'm do wrong???</p>