Maximilian Hils
d5c318b070
fix support for chained certificates
2014-10-08 20:44:52 +02:00
Aldo Cortesi
d998790c2f
Clean up and clarify StateObject
...
- Flatten the class hierarchy
- get_state, load_state, from_state are public
- Simplify code
- Remove __eq__ and __neq__. This fundamentally changes the semantics of
inherited objects in a way that's not part of the core function of the
class
2014-09-17 11:41:42 +12:00
Maximilian Hils
9ec7963f8e
update iframe injector example to use BeautifulSoup
2014-09-12 02:42:45 +02:00
Maximilian Hils
fbc4bb38df
mitmproxy -> libmproxy.main. do some leanup on the way
2014-09-08 23:34:43 +02:00
Maximilian Hils
ebd539b49f
update examples, fix #353
2014-09-08 17:03:34 +02:00
Maximilian Hils
8eff2df89e
add note that request.host should be used in the majority of cases
2014-09-07 18:05:43 +02:00
Maximilian Hils
ac27d1236f
improve change_server api, add example how to change the upstream server
2014-09-07 18:01:37 +02:00
Maximilian Hils
2a6337343a
update docs, mostly revert 2f44b26b4c
2014-09-05 15:16:20 +02:00
Maximilian Hils
f2570c773a
iframe injector example: use inline script
2014-09-05 15:05:44 +02:00
Maximilian Hils
ea55f2e012
Merge branch 'issue_341' into server_change_api
...
Conflicts:
examples/redirect_requests.py
libmproxy/console/common.py
2014-09-04 00:11:20 +02:00
Maximilian Hils
649e63ff3c
fix some leftovers
2014-09-04 00:10:01 +02:00
Maximilian Hils
2f44b26b4c
improve HTTPRequest syntax
2014-09-03 23:44:54 +02:00
Maximilian Hils
b0cfeff06d
fix #341 - work on flows instead of request/response internally.
2014-09-03 16:57:56 +02:00
Maximilian Hils
f4a1459ebe
fix #274
2014-08-09 01:02:58 +02:00
Maximilian Hils
c6911a4158
docs: add docs for script args, fix #293
2014-08-07 01:30:47 +02:00
Maximilian Hils
8f9395060f
improve example scripts
2014-08-03 02:39:41 +02:00
Maximilian Hils
e9401a2123
Merge branch 'stream'
...
Conflicts:
libmproxy/protocol/http.py
2014-07-31 22:29:13 +02:00
Maximilian Hils
a73ad1d945
fix tests
2014-07-26 11:51:27 +02:00
Maximilian Hils
41f49ff0d4
add example how to replace response body contents
2014-07-26 00:44:03 +02:00
Maximilian Hils
4b4a18a2e4
add --stream options, various fixes
2014-07-21 21:06:55 +02:00
Maximilian Hils
a17a53269d
fix #253
2014-05-15 14:37:05 +02:00
Jean Regisser
17e0f7d159
Fixed palette forced to light in mitmproxywrapper.py
2014-03-26 13:15:23 +01:00
Maximilian Hils
6d9b28f2ea
add example to show how to read mitmproxy dump files, refs #207
2014-02-04 19:10:55 +01:00
Aldo Cortesi
58e1b3a47f
Start refactoring scripts
...
- Move ScriptContext into script module
- Use mock module instead of hand-rolled mock objects in tests
2014-01-12 12:49:19 +13:00
Tomaz Muraus
1fa6bcbd5a
Update another reference to PIL.
2014-01-04 03:15:08 +01:00
Maximilian Hils
e643759ef6
merge smurfix/fix2, add serverconnect hook docs, adjust tests
2013-12-16 22:10:06 +01:00
Maximilian Hils
605950bfdf
add @concurrent decorator for inline scripts, fixes #176
2013-12-15 02:43:16 +01:00
Maximilian Hils
729677cd85
Merge branch 'master' into 0.10
2013-08-17 13:30:36 +02:00
Marc Liyanage
e5c0891e84
Pass extra command line arguments to mitmproxy
2013-07-08 20:56:05 -07:00
Maximilian Hils
2b4af8d475
add support for multiple scripts and script arguments. refs #76
2013-06-13 16:09:38 +02:00
Marc Liyanage
09c95ece52
Re-run mitmproxywrapper.py with sudo if necessary.
2013-06-02 12:43:49 -07:00
Marc Liyanage
ceafd411f3
Change the proxy settings for all connected interfaces, not just the primary one.
2013-05-15 22:40:08 -07:00
Marc Liyanage
50ac988363
Add mitmproxywrapper.py
2013-05-15 15:24:34 -07:00
Aldo Cortesi
9fa09cc1f9
Fix crash in client playback.
2013-05-05 13:18:52 +12:00
Maximilian Hils
7a7914463f
Add redirect example
2013-04-07 19:16:01 +02:00
Aldo Cortesi
cfb5ba89ce
Introduce a filtered flow writer, and use it in dump.py
...
Fixes #104
2013-03-14 09:19:43 +13:00
Aldo Cortesi
c34d1e3de6
Docs, examples.
2013-03-11 11:49:36 +13:00
Jakub Nawalaniec
a658dba410
New example - standalone proxy injecting iframes into responses
2013-01-13 20:54:16 +01:00
Bryan Bishop
1c6139e013
remove trailing whitespace
2012-12-09 15:57:11 -06:00
Aldo Cortesi
efa98d514c
Docs and comments for WSGI app example.
2012-04-24 14:58:18 +12:00
Aldo Cortesi
c8d2b2594b
Add a WSGI adapter that lets us serve a WSGI app out of mitmproxy.
...
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.
2012-04-24 14:52:29 +12:00
Aldo Cortesi
62ca9b71ff
Add two more examples: dup_and_replay.py and modify_querystring.py
2012-02-23 15:43:04 +13:00
Aldo Cortesi
bc3bf969ba
Add an example showing the new form API.
2012-02-23 14:57:43 +13:00
Aldo Cortesi
1af26bb915
Minor docs and example script fixes.
2012-02-21 12:32:56 +13:00
Aldo Cortesi
7629a43d82
README and minor felicities for script examples.
2011-08-27 09:24:04 +12:00
Aldo Cortesi
b635112d36
Add an example script that turns all PNGs upside down.
2011-08-26 19:01:33 +12:00
Aldo Cortesi
25f12b0e5d
Add a basic Flow processor example.
2011-08-13 13:51:38 +12:00
Aldo Cortesi
f0122f1403
API docs.
2011-08-06 13:19:46 +12:00
Aldo Cortesi
f23818ceea
Add a "done" event for scripts.
...
Called exactly once after all other events.
2011-08-05 14:08:03 +12:00
Aldo Cortesi
cd0e2f18e6
First draft of scripting docs.
2011-08-05 13:26:39 +12:00