Merge pull request #2894 from vikashvverma/improve-curl-cheatsheet

Improve curl cheatsheet
master
Rob Emery 2016-04-29 22:01:16 +01:00
commit 01d8e26e75
1 changed files with 30 additions and 7 deletions

View File

@ -1,18 +1,18 @@
{ {
"id": "curl_cheat_sheet", "id": "curl_cheat_sheet",
"name": "Curl", "name": "Curl",
"description": "Displays a list of curl command options", "description": "A list of curl command and options",
"metadata": { "metadata": {
"sourceName": "Cheatography", "sourceName": "About",
"sourceUrl" : "http://www.cheatography.com/ankushagarwal11/cheat-sheets/curl-cheat-sheet/" "sourceUrl" : "http://linux.about.com/od/commands/l/blcmdl1_curl.htm"
}, },
"aliases": [ "aliases": [
"curl options" "curl options"
], ],
"template_type": "reference", "template_type": "terminal",
"section_order": [ "section_order": [
"Basic Usage", "Basic Usage",
@ -20,13 +20,14 @@
"Cookies", "Cookies",
"Send Data", "Send Data",
"Headers", "Headers",
"Exit Codes" "Exit Codes",
"Miscellaneous"
], ],
"sections": { "sections": {
"Basic Usage": [ "Basic Usage": [
{ {
"key": "curl [options...] <url>", "key": "curl \\[options...\\] <url>",
"val": "Makes a request to the url given" "val": "Makes a request to the url given"
} }
], ],
@ -101,7 +102,29 @@
}, },
{ {
"key": "56", "key": "56",
"val": "The request could not recieve data" "val": "The request could not receive data"
}
],
"Miscellaneous": [
{
"key": "-v / --verbose",
"val": "Displays data sent and received"
},
{
"key": "-m / --max-time",
"val": "Maximum time in seconds the command should execute"
},
{
"key": "-k / --insecure",
"val": "Allows insecure requests"
},
{
"key": "-s",
"val": "Hides the progress"
},
{
"key": "-S",
"val": "Displays error when the request fails(when used with -s)"
} }
] ]
} }