R
Robbie Mckennie
im writing a program that needs to post a form, and iv found that i can
do this with post_form(), but i need to send it over a connection with
ssl encryption. heres my code
require 'net/http'
require 'uri'
res = Net::HTTP.post_form(URI.parse('http://the/url'),
{
'my test' => 'variables'
}
)
puts res.body
and that works, but without ssl. i wanted somthing like this
require 'net/http'
require 'uri'
res = Net::HTTP.post_form(URI.parse('http://the/url'),
{
'my test' => 'variables'
}
)
res.ssl = true
puts res.body
but i havnt found anything. hope i have been clear
do this with post_form(), but i need to send it over a connection with
ssl encryption. heres my code
require 'net/http'
require 'uri'
res = Net::HTTP.post_form(URI.parse('http://the/url'),
{
'my test' => 'variables'
}
)
puts res.body
and that works, but without ssl. i wanted somthing like this
require 'net/http'
require 'uri'
res = Net::HTTP.post_form(URI.parse('http://the/url'),
{
'my test' => 'variables'
}
)
res.ssl = true
puts res.body
but i havnt found anything. hope i have been clear