Hi,

I am trying to test my application with WebClient. My application has a 
non-standard login process, based on a couple of redirects.
When login manually in the browser, everything works fine. Taking a look at 
the requests, I see that after the first redirect a session cookie appears 
in the request.

When doing the same POST request with WebClient, the session cookie does 
not appear after the first redirect.

I wonder if the redirects are handled internally in web2py, or if they 
communicate with the client (browser / WebClient).

Eventually the cookie is sent back in the reply to WebClient, but in 
between redirects the session is not yet set (only when testing with 
WebClient), which makes my test fail because session specific data which is 
setup during the redirect phase can not be configured.

How to handle the redirects with WebClient?

Thanks,

Daniel Gonzalez

-- 



Reply via email to