Merge d78e5c2f90
into 4fec0a46e7
This commit is contained in:
commit
78483777d7
|
@ -0,0 +1,12 @@
|
|||
# Curl aliases plugin
|
||||
|
||||
## Functions explained
|
||||
|
||||
* curlj - pretty json (require Python 2.6)
|
||||
|
||||
## Aliases explained
|
||||
|
||||
* curlh - show header only
|
||||
* curls - download filename
|
||||
* curlt - show response time in milliseconds
|
||||
* curlrc - show http code
|
|
@ -0,0 +1,10 @@
|
|||
alias curlj=jsoncurl
|
||||
function jsoncurl()
|
||||
{
|
||||
curl -s $1 |python -m json.tool
|
||||
}
|
||||
|
||||
alias curlh="curl -siv -o /dev/null"
|
||||
alias curls="curl -O"
|
||||
alias curlt="curl -o /dev/null -s -w %{time_total}'\\n'"
|
||||
alias curlrc="curl -s -o /dev/null -w %{http_code}'\\n'"
|
Loading…
Reference in New Issue