open-uri and HTTPS, or net/https with a redirect

S

snacktime


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
 
J

jotto

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top