Hi Tony, There's nothing obviously wrong here. Have you tried comparing what you're doing to how appcfg.py authenticates? Checking for any differences may be instructive.
-Nick Johnson On Mon, May 18, 2009 at 9:48 PM, Tony <fatd...@gmail.com> wrote: > > 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=myem...@gmail.com -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 google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---