Aldo Cortesi
8f0e4a9bdd
console: simplify view modes.
2015-03-29 15:27:17 +13:00
Aldo Cortesi
bdc2fda7ef
Seems more natural to re-prompt for search every time
2015-03-29 15:16:20 +13:00
Aldo Cortesi
80c4de5ca4
Keep record of last search term
2015-03-29 15:14:56 +13:00
Aldo Cortesi
e4738bdd39
Fix search wrap-around offsets.
2015-03-29 14:39:47 +13:00
Aldo Cortesi
8a0404ddf8
Beginning of a simpler and more flexible search implementation
2015-03-29 14:32:36 +13:00
Maximilian Hils
423530fc25
Merge pull request #515 from krzysiekbielicki/master
...
[#514 ] Add support for ignoring payload params in multipart/form-data
2015-03-26 18:16:31 +01:00
Marcelo Glezer
fb17eea5e0
fix #535 server replay was failing from ui but working from command line (fixed now too)
2015-03-25 17:12:38 -03:00
Marcelo Glezer
c5f153f8d0
fix #535 now works with both cases: using -c from command line and pressing c in the ui
2015-03-25 17:07:31 -03:00
Marcelo Glezer
e6a8863c51
fixed exception in mitmproxy -c fix #535
2015-03-25 16:57:28 -03:00
Marcelo Glezer
f45ac12d20
handles UnicodeDecodeError
2015-03-23 23:57:18 -03:00
Aldo Cortesi
6fb661dab5
Unwind twisty maze of cache layers. Holy confusing, Batman.
2015-03-22 21:08:18 +13:00
Aldo Cortesi
842e23d3e3
Replace far-too-clever decorator LRU cache with something simpler
2015-03-22 21:00:41 +13:00
Aldo Cortesi
a2da38cc83
Whitespace, indentation, formatting
2015-03-22 17:33:25 +13:00
Aldo Cortesi
15f65d63f6
Trigger flow change when flow elements are edited
2015-03-22 17:28:13 +13:00
Aldo Cortesi
08bb076533
console: signal-based view stack, unifying mechanisms for help, flow views, etc.
2015-03-22 17:18:53 +13:00
Aldo Cortesi
120c8db8a4
console: refactor the way we keep global view state
2015-03-22 16:59:11 +13:00
Aldo Cortesi
aa9a38522f
Remove refresh_flow mechanism in favor of a signal-based implementation
2015-03-22 15:58:32 +13:00
Aldo Cortesi
c9a0975446
console: observe state objects for changes, fire event to update status bar.
2015-03-22 15:11:54 +13:00
Aldo Cortesi
200498e7aa
Simplify the way in which path prompts keep state
...
In the past, we kept the last path the user specified for a number of different
path types to pre-seed the path prompt. Now, we no longer distinguish between
types, and pre-seed with the last used directory regardless.
2015-03-22 14:14:44 +13:00
Aldo Cortesi
572000aa03
Rationalise prompt calling conventions
2015-03-22 13:59:34 +13:00
Aldo Cortesi
89383e9c13
Refactor status bar prompting to use signal system
2015-03-22 13:32:24 +13:00
Aldo Cortesi
381a563067
Status bar message expiry based on signals and Urwid main loop
2015-03-21 12:37:00 +13:00
Aldo Cortesi
8725d50d03
Add blinker dependency, start using it to refactor console app
...
Blinker lets us set up a central pub/sub mechanism to disentangle our object
structure.
2015-03-21 11:19:20 +13:00
Aldo Cortesi
b475c8d6ea
Add window.py import missed in refactoring
2015-03-20 15:22:05 +13:00
Aldo Cortesi
c182133d64
console: pull primary window frame management out into window.py
2015-03-20 13:26:08 +13:00
Aldo Cortesi
2f8ebfdce2
Pull console StatusBar into its own file.
2015-03-20 11:08:04 +13:00
Aldo Cortesi
241530eb0a
Remove cruft to work around an old Urwid bug
2015-03-20 11:03:46 +13:00
Aldo Cortesi
558e0a41c2
Fix general prompt input.
2015-03-20 11:00:24 +13:00
Aldo Cortesi
560e44c637
Pull PathEdit out into its own file.
2015-03-20 10:54:57 +13:00
Aldo Cortesi
a3f4296bf1
Explicitly handle keyboard interrupt in mitmproxy
...
Fixes #522
2015-03-20 10:02:34 +13:00
Aldo Cortesi
d7e53e6573
Fix crashes on mouse click when input is being handled
2015-03-20 09:30:29 +13:00
Aldo Cortesi
b47019293e
Nicer Solarized palettes, using the correct terminal values
2015-03-19 20:49:43 +13:00
Aldo Cortesi
7e9a5e66fe
Reinstate solarized_dark and solarized_light palettes.
2015-03-19 18:42:03 +13:00
Aldo Cortesi
32a674948f
Less painful light heading bar palette
...
lowlight remains painful due to background color restrictions.
2015-03-19 18:29:06 +13:00
Aldo Cortesi
1d5fcc6e0e
Revamp palette specification
...
- Split low-color and high-color specifications in palettes.
- Split off light, dark, lowlight and lowdark palettes. Lowlight and lowdark
will be the low-color base for most subsequent palettes.
- Add a small script that makes test pattern requests to pathod.
2015-03-19 18:05:30 +13:00
Marcelo Glezer
8feebcbf8e
fix for #522
2015-03-18 12:56:12 -03:00
Marcelo Glezer
75d4563af0
fixes crash pressing 'c':client-replay in mitmproxy
2015-03-17 16:39:52 -03:00
Maximilian Hils
3650d73662
Merge remote-tracking branch 'onlywade/master'
...
Conflicts:
libmproxy/console/__init__.py
libmproxy/console/flowlist.py
2015-03-15 14:36:06 +01:00
Aldo Cortesi
a4f500c82e
Indentation, style, whitespace
2015-03-13 23:14:37 +11:00
Aldo Cortesi
60dce08d54
Remove compatibility shim used to interop with older versions of Urwid
2015-03-13 23:04:07 +11:00
Aldo Cortesi
87a3c71041
Formatting and whitespace
2015-03-13 22:29:21 +11:00
Aldo Cortesi
468cc81c8a
Style & whitespace
2015-03-13 22:07:35 +11:00
Aldo Cortesi
488bcaca6f
Integrate Urwid's MainLoop in console mitmproxy
...
Urwid's method for accumulating multi-character escape codes is now tied
up with its main loop, which means we can't avoid it. This commit fixes
a range of issues (like escape not working to exit editable fields), and
also improves responsiveness.
2015-03-13 21:58:22 +11:00
Krzysztof Bielicki
244ef243d7
[ #514 ] Add support for ignoring payload params in multipart/form-data
2015-03-10 10:44:06 +01:00
Wade Catron
803d631f04
Adding a server replay option to ignore host when searching for matching requests
2015-03-08 10:21:57 -07:00
Tarashish Mishra
48023db59e
Minor refactor to PR #496
2015-03-04 22:32:01 +05:30
Marcelo Glezer
b49d573c8b
sorted timing information by timestamp
2015-03-03 18:38:16 -03:00
Marcelo Glezer
8a672b7955
minor refactor
2015-03-03 00:55:23 -03:00
Marcelo Glezer
f514eacd7a
added timing information to FlowDetailView
2015-03-03 00:44:31 -03:00
Marcelo Glezer
58dba3f490
fixed formatting and added a 'test' (sort of)
2015-03-02 23:22:44 -03:00
Marcelo Glezer
91e5a4a4b5
#487 added microsecond support to format_timestamp and used in FlowDetailView. Still WIP.
2015-03-02 18:30:46 -03:00
Marcelo Glezer
09828ff2d9
changes requested by @mhils
2015-03-01 22:19:32 -03:00
Marcelo Glezer
3a78c95d0a
added to flowlist / flowdetail time elapsed between request sent and response received
2015-02-26 18:14:20 -03:00
Marcelo Glezer
58091b7041
removed useless try except
2015-02-12 01:33:35 -03:00
Marcelo Glezer
16653cc62b
fixed typos
2015-02-12 00:31:05 -03:00
Marcelo Glezer
27a1947599
missing str in http.parse_url
2015-02-11 22:03:57 -03:00
Marcelo Glezer
493cecfaf2
renamed add_request to create_request and added a tiny docstring
2015-02-11 16:05:49 -03:00
Marcelo Glezer
ba42984b59
added support for creating new requests. still wip (not working for https)
2015-02-10 15:24:21 -03:00
Maximilian Hils
102183fd23
remove leftovers
2015-02-07 00:36:47 +01:00
Maximilian Hils
65c14724f5
make copy context-sensitive
2015-02-07 00:33:29 +01:00
Maximilian Hils
02e0bad684
improve clipboard UX
2015-02-06 23:32:22 +01:00
Maximilian Hils
c871a12ea4
Merge remote-tracking branch 'tekii/feature-334'
2015-02-06 20:27:50 +01:00
Marcelo Glezer
f49dcb0d91
removed str() cast and changed 'failed copy trying save instead' message
2015-02-06 00:59:05 -03:00
Marcelo Glezer
64c02a16c3
save_flow now uses with, and pyperclip requirement updated to 1.5.8
2015-02-06 00:44:43 -03:00
Maximilian Hils
f215c3712d
fix #459
2015-02-05 17:12:48 +01:00
Marcelo Glezer
75cca63b26
added copy to clipboard support for url
2015-02-05 11:31:25 -03:00
Marcelo Glezer
ae83d39eba
added support for 'b' key in flowlist
2015-02-05 11:31:25 -03:00
Marcelo Glezer
9fc68d320c
added support for copying request (content|header) to clipboard
2015-02-05 11:31:24 -03:00
Marcelo Glezer
3bcf0cbba8
used save_body from common when b key is pressed
2015-02-05 11:31:24 -03:00
Marcelo Glezer
8f66fe1bfc
added support for saving file if content is binary. still wip
2015-02-05 11:31:24 -03:00
Marcelo Glezer
c57efffe01
extracted server_copy_response to common
2015-02-05 11:31:24 -03:00
Marcelo Glezer
f21a44dd48
removed pyperclip hard dependencies
2015-02-05 11:31:24 -03:00
Marcelo Glezer
d9f562b5c0
used get_decoded_content and removed decode call from headers as max suggested
2015-02-05 11:31:24 -03:00
Marcelo Glezer
1a06f15ee0
added copy functionality to flowview too
2015-02-05 11:31:24 -03:00
Marcelo Glezer
fdd012bdd8
removed invalid comment and unneeded safe text
2015-02-05 11:31:24 -03:00
Marcelo Glezer
ee75a0b9cb
now content and header are working and exception for binary files are handled correctly
2015-02-05 11:31:24 -03:00
Marcelo Glezer
f89a5235d3
wip - content copy is working, header representation is not
2015-02-05 11:31:24 -03:00
Maximilian Hils
0ac3227b7b
clean up flow reading
2015-02-05 14:44:45 +01:00
Maximilian Hils
19555bb39a
Merge remote-tracking branch 'tekii/master'
2015-02-05 14:20:22 +01:00
Maximilian Hils
965cfffa5e
fix statusbar initialization
2015-02-05 14:15:26 +01:00
Marcelo Glezer
8e57597d22
missing parameter in start_server_playback call
2015-01-13 08:16:00 -03:00
Marcelo Glezer
4f578866fa
open flow files using with as max suggested
2015-01-12 14:31:18 -03:00
Marcelo Glezer
9553ca0ed4
hotfix to mitmproxy missing start_server_playback() parameter added. backported from PR [ #439 ]
2015-01-12 12:49:23 -03:00
Marcelo Glezer
27950f1972
Merge remote-tracking branch 'base/master'
2015-01-12 10:55:47 -03:00
Maximilian Hils
40c28b79d1
Merge branch 'master' of github.com:mitmproxy/mitmproxy
2015-01-09 16:40:32 +01:00
Maximilian Hils
8af26bd0b7
fix #443
2015-01-09 16:40:26 +01:00
Nick HS
3dcba41d6d
Error to stdout when loading bad replays from the command line
2015-01-08 13:56:19 -05:00
Marcelo Glezer
30213d6370
now mitmproxy supports multiple saved flows files too. also fixed server_play_back start with mitmproxy (missing parameter)
2015-01-06 15:49:49 -03:00
Aldo Cortesi
1b5f5021dc
Consolidate reading flows from file, use in mitmweb.
2015-01-02 13:26:22 +13:00
Maximilian Hils
51671b22a0
fix #435
2014-12-29 14:56:35 +01:00
Maximilian Hils
ad973de0b3
fix mitmproxy -w
2014-12-29 14:40:34 +01:00
Maximilian Hils
1f454b577f
web: CSP, revert functionality, serve content
2014-12-25 16:10:47 +01:00
Maximilian Hils
4767b83726
fix gzipped body edit
2014-12-23 23:14:55 +01:00
Maximilian Hils
2861d99de4
web: intercept feature
2014-12-23 20:33:42 +01:00
Aldo Cortesi
01fa5d3f07
Merge pull request #414 from mitmproxy/flowviews2
...
Flowviews2
2014-12-12 22:08:15 +13:00
Maximilian Hils
591ed0b41f
fix HTTPResponse creation
2014-12-04 00:29:15 +01:00
Maximilian Hils
56f1278d1a
fix #413
2014-11-28 17:52:54 +01:00
Maximilian Hils
ed8249023f
introduce revised views, port over changes from multiple_views branch
2014-11-26 04:18:21 +01:00
Maximilian Hils
c7a96b2fb1
always show error messages
2014-11-15 00:52:26 +01:00
Maximilian Hils
9b5a8af12d
fix grideditor bug
2014-11-14 00:21:47 +01:00