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?
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
On 10/1/06, jotto <jonathan.otto@gmail.com> wrote:
i am trying to connect to https://login.yahoo.com which redirects to
what is im assuming a load balanced server.
snacktime wrote:
On 10/1/06, jotto <jonathan.otto@gmail.com> 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
You mean after you login? It doesn't redirect me anywhere when I go there.
On 10/2/06, jotto <jonathan.otto@gmail.com> wrote:
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.
login.yahoo.com/login?login=usernamehere%40yahoo.com&passwd=passwordgoeshere
snacktime wrote:
On 10/2/06, jotto <jonathan.otto@gmail.com> 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.