From: Roman Shterenzon Date: 2009-02-03T17:53:36+09:00 Subject: [ruby-core:21797] [Bug #859] open-uri doesn't allow redirection to https Issue #859 has been updated by Roman Shterenzon. I quote from [ruby-core:21234] : But first of all the HTTP --> HTTPS redirection should be still considered ok. Regarding the other way, well, the Referer should be set to the URL that redirected us. I believe this is not currently implemented. As for cookies, AFAIK there's no direct support for cookies in Net::HTTP nor open-uri, so if the programmer wants to use cookies, she has to set it manually via a "Cookie" header. And since no support for cookies as per RFC2109 is in place, no security measures are implemented. So for example one URL can redirect to other (also HTTP) URL, which is in another domain, and the cookie (actually header) will be sent anyway. So the fact that the "secure" attribute of cookie is unsupported diminishes in light of this. Therefor I think that redirecting from HTTPS to HTTP should be considered ok too. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/859 ---------------------------------------- http://redmine.ruby-lang.org