#!/usr/bin/env ruby
require 'socket'
contenido = "d=example.com:XXX.XXX.XXX.XXX%3Ahttp%3A%2F%2Fexample.com"
s = TCPSocket.open("dbc.pinestry.com", 80)
s.puts("POST /rtk/get_url.php HTTP/1.0")
s.puts("Host: dbc.pinestry.com")
s.puts("User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3")
s.puts("Accept: */*")
s.puts("Accept-Language: en-us,en;q=0.5")
s.puts("Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7")
s.puts("Content-Length: #{contenido.length}")
s.puts("Content-Type: application/x-www-form-urlencoded")
s.puts("\r\n")
s.puts(contenido)
while line = s.gets
puts line
end
s.close