I have an App Engine application that I would like to authenticate to
programmatically using cURL - I've tried these steps and I'm still
having no luck.  Here are the steps I've performed:

1. Obtain an Auth key:
curl -d [email protected] -d Passwd=mypasswd -d
accountType=GOOGLE -d service=ah -d source=MyApp 
https://www.google.com/accounts/ClientLogin

I get the proper response with the SID, LSID, and Auth keys.

2.  Use the Auth key to login and obtain a cookie and save it in
"cookiefile":

curl -c cookiefile http://counter.rocktioneer.com/_ah/login?auth=DQAAA...

3. Try to connect to my app using the cookie:

curl -b cookie http://myapp.appspot.com <-- fails, I get a redirect to
the login page

curl -H "Cookie: ACSID=ABC..." http://myapp.appspot.com <-- fails, I
get a redirect to the login page

I've also tried connecting to my app via the login redirect:

curl -L 
http://myapp.appspot.com/_ah/login?continue=http://myapp.appspot.com&auth=DQA...

This fails with a Server Error 500.

Anyone know what I'm doing wrong, here?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to