Hypertext Transfer Protocol Secure (HTTPS) is a combination of the Hypertext Transfer Protocol with the SSL/TLS protocol to provide encrypted communication and secure identification of a network web server.
8
votes
2answers
1k views
Safely accepting a known SSL certificate with a different host name
My app communicates with a server over an internal network through HTTPS. The SSL certificate on this server is listed for the host as its external host name. I want to accept this certificate, but I ...
7
votes
1answer
2k views
Let OpenSSL decide which TLS protocol version is used by default
I use Gem in a Box, a Ruby project that allows to create personal self-hosted gem repositories. Gem in a Box uses httpclient to connect to the gem repository. After ...
4
votes
2answers
82 views
Refactor Ruby method for getting domain?
How do I make this more Ruby like? I want to return the host, for example
if the URL is "http://www.facebook.com" then I want to get 'facebook.com'.
Any other sub-domains without 'www' should give ...
4
votes
1answer
1k views
HTTP Get & Post code with slow performance
I had developed an application in which I hit several URLs and show data on mobile. But the problem is that it requires more time. If I check the same URL on Firebug tool I get a response in 2-3 ...
3
votes
1answer
75 views
Return current URL
I was unable to find how to get current URL so here's what I've made. Brief tests didn't reveal anything bad. Your thoughts, educated opinions, suggestions, and comment on potential bugs or ...
3
votes
0answers
128 views
Choose the Transport Layer Security protocol - requests python
I am using using the following code to choose the transport layer security protocol while issuing a request to server. Could someone please review it.
This is in reference to the following question:
...
2
votes
1answer
37 views
Forcing SSL and WWW using .htaccess
I would like to know if this code in .htaccess for forcing SSL and WWW in URL is correct, because with another code I usually get redirect loop, e.g. ...
1
vote
1answer
62 views
Making an HTTPS request more readable
I think the snippet is too nested having too many blocks. It needs to be refactored to make the logic more readable.
The try exception is the first level block
...
1
vote
1answer
434 views
Python script to update a cPanel zone record with my public IP
This is my first attempt at using Python to send http requests. I want to keep a zone record on cPanel pointed at my home network's public IP. I'm just looking for some general feedback/suggestions. ...
1
vote
0answers
35 views
Displaying blog posts from non-SSL site in SSL site
The Issue
I added SSL to a previously static and non-SSL website because some new features will require it. I'm using rails 4.0.5, ruby 1.9.3, and the site is deployed on heroku. [it's at www dot ...