From f8d1888a522a91eb2097228fd59cb0eac8586688 Mon Sep 17 00:00:00 2001 From: Micooz Date: Wed, 13 Jun 2018 20:52:43 +0800 Subject: [PATCH] docs: add "Test Using curl" --- docs/usage/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/usage/README.md b/docs/usage/README.md index 372fd70..65f329b 100644 --- a/docs/usage/README.md +++ b/docs/usage/README.md @@ -52,6 +52,23 @@ After init, you should edit `blinksocks.client.json` to tell blinksocks client w You can also check out [Configuration](../config) for explanation of every option. +## Test Using curl + +[curl](https://curl.haxx.se/) is an useful tool which can send requests via a variety of proxy protocols: + +``` +# SOCKS +$ curl -Lx socks5://localhost:1080 www.google.com +$ curl -Lx socks4://localhost:1080 www.google.com +$ curl -Lx socks4a://localhost:1080 www.google.com + +# HTTP +$ curl -Lx http://localhost:1080 www.google.com + +# HTTPS +$ curl --proxy-insecure -Lx https://localhost:1080 www.google.com +``` + ## Run in production ### Using pm2