Excellent! The documentation was in the Python code.
Here's how it can be done with curl:
Step 1:
You need the auth token. The following program generates this token
for
dev.mc...@gmail.com
#!/bin/bash
curl
https://www.google.com/accounts/ClientLogin \
-d Email=
dev.mc...@gmail.com -d Passwd=PaSSword \
-d accountType=GOOGLE \
-d source=Google-cURL-Example \
-d service=lh2 -k
This will return 3 tokens. Only the Auth token is needed for step 2
SID=DQ ....
LSID=DQAAH
Auth=DA...<lots of other characters>
Step 2:
Get the ACSID. This has to be done at the Google App Engine site,
which is normally done with a browser. Note that that complete auth
token above is used at the end of the string.
curl -c cookiefile "
http://your.app.enginesite/_ah/login?
continue=
http://your.app.enginesite/&auth=DQA..."
The above command writes this cookie to the file cookiefile.
I'll post a complete C example, which might be useful anyone doing
development with an embedded device, or even an application running on
a PC that may need to login to GAE. Agreed. Tools have already been
written for Python; however, I can see cases where Python may not be
installed.
Regards,
Mike Chirico