There isn't an easy way to do this. You'll have to follow the redirect, log in, then store the cookie and pass it as a header on subsequent requests.
If you're doing this for static assets, would it be easier simply to use nofollow and obfuscation of the filenames? On Sat, Apr 10, 2010 at 6:35 PM, viatropos <[email protected]> wrote: > I have set up a GAE account to test it out as a CDN. I have set a > particular folder so that admin status is required: > > - url: /files > static_dir: files > login: required > > Question is, how do I retrieve those files programmatically? I need > to login somehow, and cache the authentication token, but I can't find > any documentation describing this. I know how to login to all the > other GData services (been using the Ruby GData gem for quite a while > now), but I can't get it to work with GAE when I make it require admin > status. > > I am using Ruby and hope to do this just through the HTTP Protocol. > > I asked this question: > > - > http://stackoverflow.com/questions/2615615/how-do-you-access-an-authenticated-google-app-engine-service-with-ruby > > ...and found these others are describing the same issue: > > - > http://stackoverflow.com/questions/101742/how-do-you-access-an-authenticated-google-app-engine-service-from-a-non-web-pyt > - > http://stackoverflow.com/questions/471898/google-app-engine-with-clientlogin-interface-for-objective-c > > Could someone explain what is supposed to happen to make this work? > Thanks so much. > > -- > 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]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- Ikai Lan Developer Programs Engineer, Google App Engine http://googleappengine.blogspot.com | http://twitter.com/app_engine -- 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.
