require 'socket'
server = TCPServer.new("0.0.0.0", 80)
loop do
socket = server.accept
while socket.gets.chop.length > 0
end
socket.puts "HTTP/1.1 200 OK"
socket.puts "Content-type: text/html"
socket.puts ""
socket.puts ""
socket.puts ""
socket.puts ""
socket.puts "#{Time.now}
"
socket.puts " "
socket.puts ""
socket.puts ""
socket.close
end