aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_flow.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Add HTTP version to flow.RequestAldo Cortesi2012-06-101-11/+11
| | | | | This is a serialization format change, that makes us incompatible with previous versions.
* Nose mopup: docs, no cover pragmas, a few missing path specs.Aldo Cortesi2012-06-091-1/+1
|
* Port mitmproxy test suite entirely to nose.Aldo Cortesi2012-06-091-107/+89
|
* Fix a crashing bug when replacing text in a flow with unicode bodies.Aldo Cortesi2012-05-251-0/+5
|
* Refuse to replay a request with missing content.Aldo Cortesi2012-05-161-0/+10
|
* Add the ability to flag content as missing in a request or a response.Aldo Cortesi2012-05-161-0/+6
| | | | | | | We'll use this in a number of situations. First, we'll soon have response streaming that directly pipes responses to clients. These will be content-less from mitmproxy's perspective. Second, we'll be growing new events that fire after headers are received, but before content is read.
* Add a WSGI adapter that lets us serve a WSGI app out of mitmproxy.Aldo Cortesi2012-04-241-0/+9
| | | | | | | | This commit adds: - A WSGI App adapter for mitmproxy - An app registry in the proxy instance that lets us link WSGI apps with (hostname, port) combinations. - Fixes for a number of bugs discovered while creating this feature.
* Serialized data version check.Aldo Cortesi2012-04-111-1/+12
|
* Serialize requestcount for ClientConnect objects.Aldo Cortesi2012-04-031-1/+2
|
* Add accessor method for SSLCert object on Response.Aldo Cortesi2012-04-021-0/+7
|
* Expand SSL cert supportAldo Cortesi2012-04-021-3/+3
| | | | | | - Capture the remote SSL certificate - Expose the remote cert as an attribute on Response - Expand the certutils.SSLCert interface to expose more cert info
* Refactor pretty view mechanism.Aldo Cortesi2012-03-241-0/+5
| | | | Also start adding unit tests for this subsystem.
* Add error indications to GridEditor.Aldo Cortesi2012-03-231-0/+4
|
* 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.