aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Store timestamps on flow components as a UTC time tuple.Aldo Cortesi2011-03-071-1/+1
| | | | | | Format is: (tm_year,tm_mon,tm_mday,tm_hour,tm_min, tm_sec,tm_wday,tm_yday,tm_isdst)
* 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-062-6/+23
|
* Add client replay options to mitmdump.Aldo Cortesi2011-03-065-82/+79
|
* Reorganize test suite to remove confusion between test utils and libmproxy ↵Aldo Cortesi2011-03-056-187/+191
| | | | utils.
* Massage namespace to make room for client replay.Aldo Cortesi2011-03-052-10/+15
| | | | Mostly replay -> server_replay
* Basic client playback state structure.Aldo Cortesi2011-03-041-4/+26
|
* Add an indicator that sticky cookies have been applied in mitmdump.Aldo Cortesi2011-02-251-0/+4
|
* Move stringification funcs from proxy to dump.Aldo Cortesi2011-02-252-2/+10
|
* Minor housekeeping - unused code, nocover directives.Aldo Cortesi2011-02-241-3/+0
| | | | 95% test coverage.
* 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-213-5/+20
| | | | | | 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-213-0/+37
|
* Add a simple server playback state object.Aldo Cortesi2011-02-212-1/+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.
* Clean up and strip down netstrings module.Aldo Cortesi2011-02-201-7/+0
|
* 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.
* Revamp SSL configuration.Aldo Cortesi2011-02-202-2/+7
| | | | | | | | - Move option parsing utiliities to proxy.py - Don't have a global config object. Pass it as an argument to ProxyServer. - Simplify certificate generation logic.
* Clean up certificate generation.Aldo Cortesi2011-02-201-11/+33
| | | | | | | | | | | | - Use templates for config files. We can re-introduce customization of the certificate attributes when we need them. - Split CA and cert generation into separate functions. - Generation methods provide an error return when generation fails. - When the user explicitly specifies a certificate, we don't generate it, but fail if it doesn't exist.
* Bump unit tests for flow.py and dump.pyAldo Cortesi2011-02-203-12/+26
|
* Implement state loading that doesn't change object identity.Aldo Cortesi2011-02-201-1/+30
| | | | We need this to let us load state from copied Flows returned from scripts.
* Bump test coverage to 100% for flow.pyAldo Cortesi2011-02-191-6/+22
|
* Fix serialization when a Request has no associated client connection.Aldo Cortesi2011-02-191-0/+4
|
* Refactor Flow primitives to remove HTTP1.0 assumption.Aldo Cortesi2011-02-196-113/+68
| | | | | | This is a big patch removing the assumption that there's one connection per Request/Response pair. It touches pretty much every part of mitmproxy, so expect glitches until everything is ironed out.
* First pass of script hooks for mitmdump.Aldo Cortesi2011-02-182-31/+43
| | | | Also stub out docs, improve mitmdump error handling.
* Add filtering to mitmdump.Aldo Cortesi2011-02-171-4/+13
|
* Add file writing to mitmdump.Aldo Cortesi2011-02-172-4/+29
|
* Tweaks and cleanups for mitmdump.Aldo Cortesi2011-02-161-2/+9
|
* Initial port of mitmdump to Flows.Aldo Cortesi2011-02-162-4/+35
|
* FlowMaster bugfixes and unit tests.Aldo Cortesi2011-02-161-2/+20
|
* Switch over to new serialization format.Aldo Cortesi2011-02-161-6/+3
| | | | Remove BSON from contrib.
* First draft of the new serialization mechanism.Aldo Cortesi2011-02-161-0/+17
|
* Import Will McGugan's netstring module.Aldo Cortesi2011-02-161-0/+63
| | | | | | | | Module is in the Public Domain. I expect to modify and extend this module, so I've imported into main library rather than contrib. Code has been reformatted to suite our code standard, tests have been extrated into /tests directory.
* Repair unit test to match removal of arg from Response class.Aldo Cortesi2011-02-161-1/+1
|
* drop unused protocol parameter from ResponseHenrik Nordstrom2011-02-153-3/+2
|
* Repair unit test suite.Aldo Cortesi2011-02-111-18/+9
|
* Further fine-tuning for pretty_xmlish.Aldo Cortesi2011-02-061-1/+4
|
* Rip out BeautifulSoup, and use a custom XML-ish prettyprinter.Aldo Cortesi2011-02-061-7/+53
|
* Also serialize ClientConnection and flow backups.Aldo Cortesi2011-02-062-1/+6
|
* Get rid of ReplayConnection - we now have only one ClientConnection class.Aldo Cortesi2011-02-045-18/+16
|
* Change "connection" to the less confusing "client_conn" throughout.Aldo Cortesi2011-02-035-21/+21
|
* Fine-tune completion a bit.Aldo Cortesi2011-02-034-0/+12
|
* Add timestamps to flows.Aldo Cortesi2011-02-033-1/+14
| | | | | For now, these are only displayed on the connection view screen, with second granularity.
* Test suite rejiggering and cleanup.Aldo Cortesi2011-02-035-108/+185
|
* Improve script handling.Aldo Cortesi2011-02-021-0/+2
| | | | | | - Display output in external viewer when script exits with error. - Add a "changed" indicator to show if a request can be reverted.
* View script debug output (stderr) in pager.Aldo Cortesi2011-02-022-1/+3
|