Hello Tony,
You might also find this thread helpful, it contains some curl
examples
http://groups.google.com/group/google-appengine-java/browse_thread/thread/c96d4fff73117e1d
Happy coding,
Jeff
On May 19, 7:35 am, "Nick Johnson (Google)"
wrote:
> 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 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=MyApphttps://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 cookiefilehttp://counter.rocktioneer.com/_ah/login?auth=DQAAA...
>
> > 3. Try to connect to my app using the cookie:
>
> > curl -b cookiehttp://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
> > -Lhttp://myapp.appspot.com/_ah/login?continue=http://myapp.appspot.com&;..
>
> > 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
-~--~~~~--~~--~--~---