Crapify usage with npmusage with curlusage with OSX 介绍
Crapify 是一个代理服务器,用来模拟缓慢而且不稳定的 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
-
Go to system preferences.
-
Click on Network.
-
Click on Advanced.
-
Click on Proxies.
-
Enable an http, and an https proxy, with 127.0.0.1, and :5000, respectively.