How to script client-side HTTP transactions?

Steve Purcell stephen_purcell at yahoo.com
Mon Apr 2 03:20:38 EDT 2001


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




More information about the Python-list mailing list