My bash script is doing the following:
curl -k -s -c gv.cookies https://accounts.google.com/ServiceLogin -F Email=something@gmail.com -F Passwd=somepassword -F service=grandcentral
This seems to work. The cookies file is created, and if I peruse the output, it certainly thinks that I’ve logged in.
However, when I next do this:
curl -k -s -b gv.cookies https://www.google.com/voice/
I get a “moved temporarily” page, and not the Google Voice markup that I expect.
Am I missing some parameter to curl that makes it use the cookies correctly? I don’t need it fixed so much as I need someone to point me in the right direction.
You should add the
-b&-Lflags :And
If it’s not sufficient, try to change the user-agent for the firefox one by example.