// 同步转发并且比对响应结果

cd /production/www/go_replay/

ulimit -n 65000

/usr/local/bin/gor --input-raw :80 --input-raw-track-response   --input-raw-bpf-filter "host ! 167.xxx.xxx.xx"  --input-raw-override-snaplen --prettify-http --output-http http://192.168.3.110:80 --output-http-timeout 10s --output-http-workers 1000 --output-http-workers-min 100  --http-allow-header "Aww-Csid: xxxxx" --output-http-track-response --http-allow-method POST --middleware "/production/www/go_replay/client/middleware/sync --project {project_name}" --output-http-compatibility-mode --http-allow-url /article/detail

 

// 流量收集到文件

/usr/local/bin/gor --input-raw :80  --input-raw-track-response --input-raw-override-snaplen --prettify-http --input-raw-expire 5s --output-stdout  --http-disallow-header "Aci: xxxxx"  --output-file-size-limit 5m 

 

// 请求重写

/usr/local/bin/gor --input-raw :80  --output-http https://xxxx.com --output-http-timeout 10s --input-raw-override-snaplen --prettify-http  --http-set-header  "Host:"  --http-allow-url /article/add

相关文章:

  • 2022-12-23
  • 2021-09-17
  • 2021-08-31
  • 2022-12-23
  • 2021-12-13
  • 2021-08-28
  • 2022-12-23
  • 2021-12-10
猜你喜欢
  • 2021-04-03
  • 2022-12-23
  • 2022-01-26
  • 2022-12-23
  • 2022-12-23
  • 2022-02-18
  • 2022-12-23
相关资源
相似解决方案