This was mostly done by Richard. I just changed the function name.

On Feb 13, 5:51 am, Fran <[email protected]> wrote:
> On Feb 10, 9:01 pm, Fran <[email protected]> wrote:
>
> > I need help to develop it 1st ;)
>
> Thanks to Massimo, we now have it in trunk - a turbo-charged fetch()
> which supports cookies amongst other things.
>
> The recipe to get my use-case working using this fetch() requires a,
> to me, black-magic session unlock call:
>
> if '127.0.0.1' in url:
>     # Keep Session for local URLs
>     import Cookie
>     cookie = Cookie.SimpleCookie()
>     cookie[response.session_id_name] = response.session_id
>     session._unlock(response)
>     file = fetch(url, cookie=cookie)
>
> Hopefully useful for someone else :)
>
> F

-- 
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