[Ruby] Funcion tomar()
Publicado: 06 Ago 2015, 18:18
Una simple funcion para cargar una pagina web que usa algun formulario.
#!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 ?