aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_flow.py
Commit message (Collapse)AuthorAgeFilesLines
* Generalize GridEditor to N columns.Aldo Cortesi2012-03-181-4/+7
| | | | Start adding a replacement rule editor.
* Hooks -> ReplaceHooksAldo Cortesi2012-03-171-20/+23
| | | | | It makes more sense to specialize this, which will let me build a nicer interface for replacement hooks in mitmproxy.
* Add a hooks mechanism, based on filter expressions.Aldo Cortesi2012-03-161-0/+35
|
* replace() methods now decode and re-encode contents before substitution.Aldo Cortesi2012-03-161-0/+18
|
* Add a decoded context manager.Aldo Cortesi2012-03-161-0/+24
| | | | | | | | | This simplifies a common chore when modifying traffic - decoding the object, modifying it, then re-encoding it with the same encoding afterwards. You can now simply say: with flow.decoded(request): request.content = "bar"
* Added tests for ServerPlaybackState with nopopValtteri Virtanen2012-03-051-0/+12
|
* Fixed old testsValtteri Virtanen2012-03-051-6/+6
|
* Unit test++.Aldo Cortesi2012-02-251-2/+11
|
* Fix detection of URL-encoded forms.Aldo Cortesi2012-02-241-1/+10
| | | | Thanks to Paul Capestany <capestany@gmail.com> for reporting this.
* Create ODictCaseless for headers, use vanilla ODict for everything else.Aldo Cortesi2012-02-201-32/+46
|
* Use ODict for request.get_form_urlencoded and set_form_urlencodedAldo Cortesi2012-02-201-3/+3
|
* Unit test import cleanups.Aldo Cortesi2012-02-201-3/+3
|
* Use ODict for Request.get_query and Request.set_queryAldo Cortesi2012-02-201-3/+3
|
* Rename Headers class to ODictAldo Cortesi2012-02-201-51/+13
| | | | | ODict is an ordered dictionary class that will be useful in many other parts of our API.
* 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.