Ramon Felciano wrote: > I'm trying automate a set of HTTP client-side steps via a Python script. The > problem I'm running into is handling *client-side* cookies. In particular, > the flow of events I want is something like this: > > 1. Generate a POST to the server login form > 2. Server returns an OK and sets a cookie (e.g. username + password) > 3. Generate a POST to the server main form, including any cookies needed > 4. Second post completes successfully. I'm working on a library for this. It's early days yet, but take a look at WebUnit: http://webunit.sourceforge.net/ There's some code there that may be useful to you. -Steve -- Steve Purcell, Pythangelist Get testing at http://pyunit.sourceforge.net/ Any opinions expressed herein are my own and not necessarily those of Yahoo
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4