aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Generalize GridEditor to N columns.Aldo Cortesi2012-03-181-4/+7
| | | | Start adding a replacement rule editor.
* Add specification of replacement patterns on the command line.Aldo Cortesi2012-03-172-0/+62
|
* 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"
* Cleanliness fixes.Aldo Cortesi2012-03-121-0/+1
| | | | | - Remove unused code during previous commit. - Code coverage fixes.
* Merge remote-tracking branch 'taiste/server-replay-pop'Aldo Cortesi2012-03-101-6/+18
|\
| * Added tests for ServerPlaybackState with nopopValtteri Virtanen2012-03-051-0/+12
| |
| * Fixed old testsValtteri Virtanen2012-03-051-6/+6
| |
* | Create an SSL certificate class.Aldo Cortesi2012-03-051-8/+6
|/
* Removed imports left unused after Py{OpenSSL,ASN1}András Veres-Szentkirályi2012-03-011-1/+1
| | | | | | Commits 533f61f67aab38f5bce882ad0dc03b7b5f292956 and 8b841bc9e370370716b473f26e001c65e2eee2af left some imports unused while swithing to PyOpenSSL and PyASN1 -- this commit removes these imports.
* Use PyOpenSSL and PyASN1 for certificate parsing.Aldo Cortesi2012-03-014-149/+191
| | | | | Yes, these are two more major dependencies for mitmproxy, but if we're going to do all the cool things I want to do with SSL certs, there is no other way.
* Factor out cert operations in to certutils.py.Aldo Cortesi2012-02-292-63/+69
|
* Repair unit tests.Aldo Cortesi2012-02-271-3/+2
|
* Fix cert generation harder.Aldo Cortesi2012-02-271-1/+3
|
* Better certificate parsing.Aldo Cortesi2012-02-274-1/+114
|
* Add upstream certificate lookup.Aldo Cortesi2012-02-273-3/+76
| | | | | | This initiates a connection to the server to obtain certificate information to generate interception certificates. At the moment, the information used is the Common Name, and the list of Subject Alternative Names.
* Unit test++.Aldo Cortesi2012-02-254-5/+30
|
* Fix detection of URL-encoded forms.Aldo Cortesi2012-02-241-1/+10
| | | | Thanks to Paul Capestany <capestany@gmail.com> for reporting this.
* Make "~q" filter work more intuitively.Aldo Cortesi2012-02-231-4/+2
| | | | It now matches any flow that has no response.
* Refactor filter matching.Aldo Cortesi2012-02-231-14/+20
|
* Create ODictCaseless for headers, use vanilla ODict for everything else.Aldo Cortesi2012-02-203-36/+50
|
* Use ODict for request.get_form_urlencoded and set_form_urlencodedAldo Cortesi2012-02-201-3/+3
|
* Unit test import cleanups.Aldo Cortesi2012-02-209-19/+14
|
* Use ODict for Request.get_query and Request.set_queryAldo Cortesi2012-02-201-3/+3
|
* Rename Headers class to ODictAldo Cortesi2012-02-204-58/+62
| | | | | 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
|
* Firm up what we consider to be a valid proxy spec.Aldo Cortesi2012-02-181-0/+1
|
* Firm up reverse proxy specification.Aldo Cortesi2012-02-181-0/+9
| | | | | | - Extract proxy spec parsing and unparsing functions. - Add a status indicator in mitmproxy. - Add the "R" keybinding for changing the reverse proxy from within mitmproxy.
* Refactor reverse proxyingAldo Cortesi2012-02-181-0/+8
| | | | | | | - Retain the specification from the Host header as a Request's description. - Expand upstream proxy specifications to include the scheme. We now say https://hostname:port - Move the "R" revert keybinding to "v" to make room for a reverse proxy binding that matches the command-line flag.
* Repair unit tests.Aldo Cortesi2012-02-182-32/+1
|
* 100% test coverage for flow.pyAldo Cortesi2012-02-102-0/+16
|
* Make filter matching act more sensibly.Aldo Cortesi2012-02-102-4/+9
|
* Add filter for detecting flows with errors.Aldo Cortesi2012-02-101-1/+9
| | | | Also, remove dependency on weird _is_response method.
* Expand test coverage.Aldo Cortesi2012-02-105-3/+65
|
* 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
|
* Refactor console.Aldo Cortesi2012-02-071-11/+12
| | | | Split the console implementation out into logical components.
* Fix unit tests broken during previous commit.Aldo Cortesi2012-01-211-4/+4
|
* Fix an issue caused by some editors when editing a request/response body.Aldo Cortesi2012-01-213-5/+3
| | | | | | Many editors make it hard save a file without a terminating newline on the last line. When editing message bodies, this can cause problems. For now, I just strip the newlines off the end of the body when we return from an editor.
* Add support for filtering by HTTP method (get, post, etc.) using ~m operator.Mark E. Haase2011-12-281-0/+8
|
* Add HTTP body size limit specification to command-line tools.Aldo Cortesi2011-09-091-1/+13
|
* Basic infrastructure for request and response body size limits.Aldo Cortesi2011-09-092-6/+37
|
* Improve robustness against invalid data.Aldo Cortesi2011-09-051-0/+3
|
* Add attribution and license for tnetstring.pyAldo Cortesi2011-08-191-0/+1
|
* Move to typed netstrings for serialization.Aldo Cortesi2011-08-191-65/+0
| | | | This change is backwards incompatible with the old serialization format!
* Code cleanliness - appease pychecker.Aldo Cortesi2011-08-048-18/+11
|
* Move script.Context to flow.ScriptContextAldo Cortesi2011-08-041-5/+8
|