#!usr/bin/ruby
#Funcion tomar()
#Coded By Doddy H
require "net/http"
def toma(web,par)
return Net::HTTP.post_form(URI.parse(web),par).body
end
code = toma("http://127.0.0.1/post.php",{"te"=>"probando","ok1"=>"ok"})
print code
#The End ?
Una simple funcion para cargar una pagina web que usa algun formulario.