Crapify慢速网络模拟器

联合创作 · 2023-09-23 17:03

Crapify 是一个代理服务器,用来模拟缓慢而且不稳定的 HTTP 网络连接,可以让你限制:



  • 上传和下载速度


  • 对外 HTTP 请求的并发连接数



使用方法:



  • npm install crapify -g


  • crapify --port=5000 --speed=3000 --concurrency=2, where:



    • port 侦听端口


    • speed 连接速率


    • concurrency 并发连接数




示例:


usage with npm


npm config set proxy http://127.0.0.1:5000


usage with curl


curl -v --proxy http://127.0.0.1:5000 https://www.google.com


usage with OSX



  1. Go to system preferences.


  2. Click on Network.


  3. Click on Advanced.


  4. Click on Proxies.


  5. Enable an http, and an https proxy, with 127.0.0.1, and :5000, respectively.


浏览 8
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报