Add an HTTP request cheat sheet #498
Open
+246
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm a big fan of using curl to make HTTP requests, but I'm always forgetting how to do basic things in curl, like "how do I make a POST request with JSON again?". So I was thinking it could be useful if curl had an official cheat sheet. I know there's a tutorial, but it's quite long and personally I only use an extremely minimal subset of curl's functionality.
This is a pretty rough draft but I wanted to see if there's interest before getting into the details. I linked each option to the appropriate place in the man page.
Here's what it looks like visually right now.

some todos:
http-cheat-sheet.html?). I feel like it's useful to have a cheat sheet just for doing HTTP(S) requests in curl even though curl does much more.