From: Samuel Sternhagen Date: 2010-09-09T07:39:10+09:00 Subject: Re: How do I request a HTTPS page? Brian Candler wrote: > Samuel Sternhagen wrote: >> http = Net::HTTP.new('etsy.com', 443) > > The redirect says you should be using www.etsy.com, not etsy.com > >> http.use_ssl = true >> path = >> "oauth/signin?oauth_consumer_key=#{oauth_consumer_key}&oauth_token=#{@request_token.token}" > > Should have a leading slash on the path. (But not http:// or https://) > > If you still get a redirect, then maybe it really wants you to use http > and not https. That is, it seems to be redirecting > https://etsy.com/anyoldjunk to http://etsy.com/anyoldjunk I added that leading '/' to the path variable. I have also added the www that you have suggested. You said that maybe it wants to used http so I tried changing the port number from 443 to 80. I get this: $ruby sec.rb warning: peer certificate won't be verified in this SSL session Code = 302 Message = Moved Temporarily location = http://www.etsy.com/login.php?from_page=http%3A%2F%2Fwww.etsy.com%2Foauth%2Fsignin%3Foauth_consumer_key%3Drxfkum3ddkdhyckduekbtj7w%26oauth_token%3Dagwt6cvhqv2ve5mvuy3fc7zs expires = Thu, 19 Nov 1981 08:52:00 GMT connection = close content-type = text/html; charset=UTF-8 date = Wed, 08 Sep 2010 22:27:17 GMT server = Apache content-length = 26 content-encoding = gzip cache-control = no-store, no-cache, must-revalidate, post-check=0, pre-check=0 pragma = no-cache 鐃緒申 I am not sure what that last part is. I think it is some kind of hexidecimal code. Either way, that is what it returned. -- Posted via http://www.ruby-forum.com/.