#!/usr/bin/env python import sys import os.path import urllib import urllib2 import cookielib url = 'http://flickr.com'
cl = cookielib.LWPCookieJar() opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cl)) urllib2.install_opener(opener) response = urllib2.urlopen(url) the_page = response.read() print cl I try to figure out why this code does not work on GAE and i got no answer. When i run this code as standalone python script cl is a not empty string with value: <_LWPCookieJar.LWPCookieJar[<Cookie cookie_l10n=en-us%3Bus for .flickr.com/>]> But when i try to run it on GAE in result i got empty CookieJar. Interesting think is when i change url from http://flickr.com to http://google.com i got expecting non empty CookieJar. Is there that kind of restriction on GAE and cookielib to work only with google.com domain? Thanks for any explanation and sorry for my poor english. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
