aboutsummaryrefslogtreecommitdiffstats
path: root/examples/har_dump.py
Commit message (Collapse)AuthorAgeFilesLines
* organize examplesMaximilian Hils2016-11-211-219/+0
| | | | | | | This commit is largely based on work by Thiago Arrais (@thiagoarrais) and Shane Bradfield (@l33tLumberjack). I wasn't really able to get their PR reasonably merged onto the latest master, so I reapplied their changes manually here and did some further improvements on that.
* Let's not over-ride __bool__ on connection objectsAldo Cortesi2016-11-041-1/+1
| | | | | If I had a thousand years and every thesaurus in the world, I still couldn't adequately express how much I dislike this piece of interface design.
* Include `boudary=...` in mutipart postData Slobodan Mišković2016-10-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | While the HAR spec is not very explicit and their example shows just this one example: ```json "postData": { "mimeType": "multipart/form-data" } ``` Would it not make sense to include all the information necessary to parse out the post data `text`. Eg. ```json "postData": { "text": "--xYzZY\r\nContent-Disposition: form-data; name=\"sort1\"\r\n\r\noldest date first\r\n--xYzZY--\r\n", "mimeType": "multipart/form-data; boundary=xYzZY" }, ``` Currently, full mimeType is included only in `content-type` request header. Elsewhere in HAR spec they include the 'extras', eg ```json "content": { "mimeType": "text/html; charset=utf-8" } ``` So one could argue that `mimeType` should include all information necessary to interpret the data. In case of `multipart/form-data`, as per RFC2046 http://www.ietf.org/rfc/rfc2046.txt ``` The Content-Type field for multipart entities requires one parameter, "boundary". ``` I believe that earlier incarnations, eg `har_exporter.py` included it in the mimeType.
* various encoding fixes, fix #1650Maximilian Hils2016-10-221-22/+17
|
* Handle `bytes` in request parametersSlobodan Mišković2016-10-221-2/+10
|
* The final piece: netlib -> mitproxy.netAldo Cortesi2016-10-201-1/+1
|
* netlib.strutils -> mitmproxy.utils.strutilsAldo Cortesi2016-10-201-1/+1
|
* netlib.version -> mitmproxy.versionAldo Cortesi2016-10-201-1/+1
|
* Fix issue with binary content in jsonShadab Zafar2016-08-151-2/+3
|
* Use postData field in PUT, PATCH requests tooShadab Zafar2016-08-151-1/+1
| | | | | The HAR spec isn't really clear on whether this should be the case, but Google Chrome does this, so I think we should too.
* Refactor format_cookiesShadab Zafar2016-08-151-6/+6
|
* Support .zhar compressionShadab Zafar2016-08-151-2/+5
|
* Add text field to response contentShadab Zafar2016-08-151-2/+11
|
* Add serverIPAddress fieldShadab Zafar2016-08-151-0/+3
|
* Add postData fieldShadab Zafar2016-08-151-2/+11
|
* Add SSL & Connect timingsShadab Zafar2016-08-151-6/+22
|
* Add a ctx.log on finishShadab Zafar2016-08-151-2/+4
|
* Open JSON file in text modeShadab Zafar2016-08-151-1/+1
|
* Simplify name_valueShadab Zafar2016-08-151-11/+1
|
* Fix wrong importShadab Zafar2016-08-151-1/+1
|
* Improve cookies formattingShadab Zafar2016-08-151-4/+19
|
* Format Cookies according to the HAR SpecShadab Zafar2016-08-151-5/+29
|
* Remove pages objectShadab Zafar2016-08-151-1/+0
| | | | | | | The HAR Spec says that the field can be left out by applications that don't group by pages. http://www.softwareishard.com/blog/har-12-spec/#log
* Welcome har_dumpShadab Zafar2016-08-151-0/+145