Skip to content

Commit

Permalink
docs(curl): ✨ Example of using parallel in curl.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguest75 committed Jul 26, 2024
1 parent 241d531 commit 9ead970
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions 61_curl/CHEATSHEET.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion 61_curl/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# README

Demonstrate some common examples with `curl`
Demonstrate some common examples with `curl` using a container

- [README](#readme)
- [Cheatsheet](#cheatsheet)
Expand All @@ -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:
Expand Down

0 comments on commit 9ead970

Please sign in to comment.