diff --git a/61_curl/CHEATSHEET.md b/61_curl/CHEATSHEET.md index 4e6cf92..260c17e 100644 --- a/61_curl/CHEATSHEET.md +++ b/61_curl/CHEATSHEET.md @@ -23,4 +23,17 @@ curl --proto '=http' --tlsv1.3 https://www.google.com curl --proto '=http' --tlsv1.3 http://www.google.com ``` +## Parallel + +Despatch parallel requests. + +```sh +# start httpbin +docker run -it --rm -p 8080:80 kennethreitz/httpbin + +open http://127.0.0.1:8080 + +curl -vvv --parallel --parallel-immediate --parallel-max 10 http://127.0.0.1:8080/status/200 http://127.0.0.1:8080/status/200 http://127.0.0.1:8080/status/200 http://127.0.0.1:8080/headers http://127.0.0.1:8080/anything/help +``` + ## Resources diff --git a/61_curl/README.md b/61_curl/README.md index 71b135e..755888c 100644 --- a/61_curl/README.md +++ b/61_curl/README.md @@ -1,6 +1,6 @@ # README -Demonstrate some common examples with `curl` +Demonstrate some common examples with `curl` using a container - [README](#readme) - [Cheatsheet](#cheatsheet) @@ -12,6 +12,7 @@ Demonstrate some common examples with `curl` - [Retries](#retries) - [Posting](#posting) - [Follow redirects](#follow-redirects) + - [Range Requests](#range-requests) - [Resources](#resources) TODO: