Skip to content

crccheck/goreplay-middlewares

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Goreplay Middlewares

Useful Goreplay middlewares I've come up with.

Compare HTTP

Compare the HTTP responses between the original and replayed request.

  • language: Bash

Sample

In terminal 1:

python3 -m http.server 6969

In terminal 2:

python2 -m SimpleHTTPServer 9001

In terminal 3:

while [ 1 ]; do curl -v localhost:6969; sleep 3; done

In terminal 4:

./gor \
  --input-raw-bpf-filter ":" \
  --input-raw :6969 \
  --input-raw-track-response \
  --middleware "/path/to/goreplay-middlewars/compare_http.sh" \
  --output-http http://localhost:9001 \
  --output-http-track-response

input-raw-bpf-filter is only needed for local testing

About

Useful Goreplay middlewares I've come up with.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published