Is there anything wrong with using this patch?
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/4365
How do you implement it?
If not a good solution, can net/http be used with HTTPS sites and can
redirection be built in?
Is there anything wrong with using this patch?
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/4365
How do you implement it?
If not a good solution, can net/http be used with HTTPS sites and can
redirection be built in?
On 10/1/06, jotto [email protected] wrote:
Is there anything wrong with using this patch?
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/4365
Do you need it? That only provides the ability to check the validity
of a server certificate. You don’t need that just to connect via ssl.
How do you implement it?
If not a good solution, can net/http be used with HTTPS sites and can
redirection be built in?
Not sure what you mean by redirection. Here is an example of an ssl
POST.
require ‘net/https’
https = Net::HTTP.new(host,port)
https.use_ssl = true
headers = { ‘Referer’ => ‘’, ‘Content-Type’ =>
‘application/x-www-form-urlencoded’ }
response = https.post(path, request, headers)
p response.body
i am trying to connect to https://login.yahoo.com which redirects to
what is im assuming a load balanced server.
correct, after you login. the login credentials can be embedded into
the URL so that is what im doing.
On 10/2/06, jotto [email protected] wrote:
i am trying to connect to https://login.yahoo.com which redirects to
what is im assuming a load balanced server.
You mean after you login? It doesn’t redirect me anywhere when I go
there.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs