From: brabuhr@... Date: 2010-08-04T06:24:17+09:00 Subject: Re: HTTPClient can't login to Google Voice On Tue, Aug 3, 2010 at 1:26 PM, Mike Telis wrote: > I'm trying to login to Google Voice using the following code: >... > PRE_LOGIN_URL   = "https://www.google.com/accounts/ServiceLogin" > LOGIN_URL       = "https://www.google.com/accounts/ServiceLoginAuth" > VOICE_HOME_URL  = "https://www.google.com/voice" >... > resp = clnt.post_content  LOGIN_URL, >                  :service  => 'grandcentral', >                  :continue => 'https://www.google.com/voice', >                  :Email    => Google_Login, >                  :Passwd   => Google_Password, >                  :GALX     => @galx http://everydayscripting.blogspot.com/2009/10/python-fixes-to-google-login-script.html login_params = urllib.urlencode( { 'Email' : email, 'Passwd' : password, 'continue' : 'https://www.google.com/voice/account/signin', 'GALX': galx_value }) Slightly different parameters? > and post_content ends up redirecting to non-https URL (which is > definitely wrong). BTW, I believe that post_content should change method > to :get on redirect. I noticed that this redirect only happened when a valid username and password was entered. I hacked my copy of httpclient to not raise the exception so I could take a look at what was being returned: "If you've been redirected to this page from the sign-in box, we've detected an error with your cookie settings. Please follow the instructions for your browser listed below. After clearing your cache and cookies, try signing in again."