cURL / Mailing Lists / curl-users / Single Mail

curl-users

Used -c, but Google says curl doesn't accept cookies

From: Jerry Krinock <jerry_at_ieee.org>
Date: Sun, 11 Sep 2011 19:21:21 -0700

I'm trying to see if I can log in to a Google account using curl:

curl -v -c /Users/jk/Desktop/cookies.txt -d 'Email=jerry%40ieee.org&Passwd=**********&PersistentCookie=yes&GALX=Xa7ppOe4k9M&3sh=-86451143036426461702&secTok=&timeStmp=' https://www.google.com/accounts/ServiceLoginAuth

Upon sending this, I get some cookies from Google written to the designated cookie jar. However, in the response data, HTML, Google tells me that "Your browser's cookie functionality is turned off. Please turn it on."

Is there a way to fix this?

Thanks,

Jerry Krinock

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-12