webpy/webpy — Issue #142: request method in application not support cookies
Author: spin6lock
Created: 2012-03-08 09:39:19+00:00
State: open

Currently I'm working on some kind of CMS built with web.py, and I tried to use the request method in application to test the function. But I got a different session id when I made a new request. Since the system needs authorization to operate, my test failed.
Then I tried to retrieve the session id in cookies and set it in headers parameter of application.request. But I still got another session id in another request.

Should I run the system and test it with urllib2's opener instead? Or I can still finish my test with the support of application.request? Thanks in advance