Skip to content

Instantly share code, notes, and snippets.

@ConradIrwin
Created February 2, 2016 22:03
Show Gist options
  • Save ConradIrwin/facc2a660666a77cb3b6 to your computer and use it in GitHub Desktop.
Save ConradIrwin/facc2a660666a77cb3b6 to your computer and use it in GitHub Desktop.
require 'socket'
s = TCPSocket.open 'localhost', 3000
s.puts "GET /~backend/build/5972d799c0ff881e4a37.page.js HTTP/1.1\r\n"
s.puts "Host: localhost"
s.puts "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
s.puts "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"
s.puts "\r\n"
while line = s.gets
exit!
puts line.chop
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment