Skip to content

Chanmoro/record-and-replay-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

record-and-replay-proxy

Record and replay http request plugin for mitmproxy.

image

How to use

Record

$ docker run -it --rm -p 8080:8080 -v ${PWD}/response_data:/app/response_data chanmoro/record-and-replay-proxy record

Replay

$ docker run -it --rm -p 8080:8080 -v ${PWD}/response_data:/app/response_data chanmoro/record-and-replay-proxy replay

Setting

Recorded http response is saved into /app/response_data by default.
You can modify save destination dir by setting an environment variable RESPONSE_DATA_DIR.

Example

Using with curl

Specify http proxy with -x option.

$ curl -k -x localhost:8080 https://github.com/

Development

Docker build

$ docker build -t record-and-replay-proxy .

Test

Execute test by pytest.

$ pytest

About

Record and replay http request plugin for mitmproxy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published