aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_flow.py
Commit message (Collapse)AuthorAgeFilesLines
* Add "p" key binding to connection list view to copy a flow.Aldo Cortesi2012-02-191-0/+2
|
* Add API for duplicating flows.Aldo Cortesi2012-02-181-0/+18
|
* Repair unit tests.Aldo Cortesi2012-02-181-1/+1
|
* 100% test coverage for flow.pyAldo Cortesi2012-02-101-0/+14
|
* Make filter matching act more sensibly.Aldo Cortesi2012-02-101-3/+8
|
* Expand test coverage.Aldo Cortesi2012-02-101-0/+44
|
* Methods for getting and setting form urlencoded data on Request.Aldo Cortesi2012-02-101-0/+12
|
* Add get_query and set_query methods to Request.Aldo Cortesi2012-02-091-5/+28
|
* Code cleanliness - appease pychecker.Aldo Cortesi2011-08-041-7/+3
|
* Request class now has a clean pydoc profile.Aldo Cortesi2011-08-041-2/+2
|
* Further interface cleaning.Aldo Cortesi2011-08-031-5/+5
|
* Clean up interfaces by making some methods pseudo-private.Aldo Cortesi2011-08-031-23/+23
|
* Move all HTTP objects to flow.pyAldo Cortesi2011-08-031-16/+334
| | | | That's Request, Response, ClientConnect, ClientDisconnect, Error, and Headers.
* Enable "|" command to run a oneshot script on a single flow.Aldo Cortesi2011-08-031-8/+0
|
* Add script hooks, enable new engine for mitmdump.Aldo Cortesi2011-08-031-10/+26
|
* Unit test++Aldo Cortesi2011-08-021-0/+23
|
* General cleanup.Aldo Cortesi2011-08-021-1/+1
| | | | | Cut out unused variables and code, generally shut up pychecker as much as is reasonable.
* We no longer need to track clientconnections.Aldo Cortesi2011-08-021-7/+0
|
* Improve performance of loading flows from a file hugely.Aldo Cortesi2011-08-011-4/+4
| | | | Fell into the "expensive __eq__ method" trap. Oh, Python, you little scamp.
* Refactor the way we calculate views of the flow list.Aldo Cortesi2011-08-011-7/+7
| | | | | The naive approach we used before recalculated the view on every access, and consequently had serious performance problems.
* Add utility functions to search and replace strings in flowsAldo Cortesi2011-07-221-0/+15
| | | | | | | | | | This is a common task in pentesting scenarios. This commit adds the following functions: utils.Headers.replace proxy.Request.replace proxy.Response.replace flow.Flow.replace
* Introduce an anti-compression command-line argument.Aldo Cortesi2011-07-151-0/+1
| | | | | This is on by default, which means we avoid compressed content unless the -z flag is specified.
* Cast some data read from dump files to str, to prevent unicode promotion.Aldo Cortesi2011-07-011-1/+5
| | | | | This fixes a bug that caused a traceback when de-serialized requests were replayed. Also adds unit tests for the problem.
* Add a new flow loading mechanism.Aldo Cortesi2011-05-151-0/+21
| | | | | We now simulate the normal connection flow when we load flows. That means that we can run scripts, hooks, sticky cookies, etc.
* Add a stickyauth option.Aldo Cortesi2011-03-201-0/+40
| | | | | | | This allows us to replay an HTTP Authorization header, in the same way as we replay cookies using stickycookies. This lets us conveniently get at HTTP Basic Auth protected resources through the proxy, but is not enough to do the same for HTTP Digest auth. We'll put that on the todo list.
* Interrupt interception when deleting an intercepting flow.Aldo Cortesi2011-03-151-3/+0
| | | | Prompting the user for this is annoying.
* Fix hang on shutdown.Aldo Cortesi2011-03-151-2/+2
|
* Add client plaback to mitmproxy.Aldo Cortesi2011-03-131-2/+4
|
* flow.py 100% test coverageAldo Cortesi2011-03-131-1/+11
|
* mitmproxy prompted input now display previously set value.Aldo Cortesi2011-03-131-3/+3
| | | | | E.g. if you set a limit, then re-enter the limit prompt, you start with the currently set value.
* Make mitmdump handle invalid serialized data gracefully.Aldo Cortesi2011-03-111-0/+10
|
* Display Errors and killed connections in mitmdump.Aldo Cortesi2011-03-111-7/+0
|
* Add --norefresh to stop refreshing server playback to mitmdump.Aldo Cortesi2011-03-111-1/+1
| | | | Also, make cookie parsing for refreshing more error-tolerant.
* Add an --anticache option to mitmdump.Aldo Cortesi2011-03-091-2/+1
| | | | | | | This removes all headers that might cause a server to return 304-not-modified. For now, all the new features are going into mitmdump - everything will be ported over to mitmproxy once I have the feature set locked down.
* Make mitmdump server playback also exit by default.Aldo Cortesi2011-03-061-6/+11
| | | | Like client playback, the --keepserving option makes mitmdump keep serving.
* Make mitmdump exit after client replay is complete by default.Aldo Cortesi2011-03-061-4/+10
| | | | Add an option --keepserving to make it keep serving after replay.
* Add flow_count and active_flow_count methods to flow.State.Aldo Cortesi2011-03-061-14/+22
| | | | Use these in unit tests where sensible.
* Bump unit tests, rearrange mitmdump command-line options slightly.Aldo Cortesi2011-03-061-6/+18
|
* Add client replay options to mitmdump.Aldo Cortesi2011-03-061-5/+2
|
* Reorganize test suite to remove confusion between test utils and libmproxy ↵Aldo Cortesi2011-03-051-56/+56
| | | | utils.
* Massage namespace to make room for client replay.Aldo Cortesi2011-03-051-7/+12
| | | | Mostly replay -> server_replay
* Basic client playback state structure.Aldo Cortesi2011-03-041-4/+26
|
* More mature sticky cookie primitive. Use it in console.py.Aldo Cortesi2011-02-241-8/+48
|
* Start abstracting out sticky cookie state.Aldo Cortesi2011-02-241-0/+12
|
* Add a way for users to specify header significance in server replay.Aldo Cortesi2011-02-231-4/+19
| | | | | | Also add the --rheader command-line option to mitmdump to let the user specify an arbitrary number of significant headers. The default is to treat no headers as significant.
* Move script hooks into the flow primitives.Aldo Cortesi2011-02-211-8/+8
| | | | This lets handle scripts in corner cases like playback situations more easily.
* Add --kill option to mitmdumpAldo Cortesi2011-02-211-2/+2
| | | | | | If this option is passed all requests that are not part of a replayed conversation are killed. If the option is not passed, such requests are passed through to the server as usual.
* First pass of playback function for mitmdump.Aldo Cortesi2011-02-211-0/+18
|
* Add a simple server playback state object.Aldo Cortesi2011-02-211-0/+38
| | | | | | | | We use a loose hash to match incoming requests with recorded flows. At the moment, this hash is over the host, port, scheme, method, path and content of the request. Note that headers are not included here - if we do want to include headers, we would have to do some work to normalize them to remove variations between user agents, header order, etc. etc.
* Certificates are now generated in a temporary per-session directory.Aldo Cortesi2011-02-201-6/+6
| | | | | | This means that certificates don't accumulate in the conf directory, users don't have to clear certificates if the CA is regenerated, and the user can specify a custom CA without invalid certificates being loaded inadvertently.