On Feb 10, 6:30 pm, Richard <[email protected]> wrote:
> I posted an example for using cookies within standard Python and GAE
> here:http://groups.google.com/group/web2py/browse_thread/thread/519fca71f7...
> The relevant part is:
> import urllib
> import urllib2
> urllib2.install_opener(urllib2.build_opener(urllib2.HTTPCookieProcessor()))
> def download(url, data=None, user_agent='Mozilla/5.0'):
>     data = data if data is None else urllib.urlencode(data)
>     headers = {'User-agent': user_agent}
>     request = urllib2.Request(url, data, headers)
>     return urllib2.urlopen(request).read()
> I agree it would be good to make fetch() more useful by supporting
> sessions.

Thanks Richard,

I have this part working I think...what isn't working is setting a
Cookie in the initial request - which is a copy of the session from
the client browser...

I looked at your full example & that doesn't seem to do this either...

Many thanks,
Fran.

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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/web2py?hl=en.

Reply via email to