• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

Ruby [Ruby] Funcion tomar()

Status
Not open for further replies.

Doddy

Leech
User
Joined
Apr 1, 2012
Messages
169
Reputation
0
Reaction score
406
Points
63
Credits
0
‎13 Years of Service‎
57%
Una simple funcion para cargar una pagina web que usa algun formulario.

Code:
>
#!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 ?
 
Status
Not open for further replies.
Back
Top