Amélioration de la commande headers
Cette révision appartient à :
Parent
9e4a0e986d
révision
2012860769
|
@ -125,11 +125,13 @@ $ curl -i https://www.example.com
|
|||
~~~{.bash}
|
||||
#!/bin/sh
|
||||
#
|
||||
# https://github.com/rtomayko/dotfiles/blob/rtomayko/bin/headers
|
||||
# Based on an original implementation by Ryan Tomayko https://github.com/rtomayko/
|
||||
# modified by Jérémy Lecour https://github.com/jlecour/
|
||||
|
||||
curl -sv "$@" 2>&1 >/dev/null |
|
||||
grep -v "^\*" |
|
||||
grep -v "^}" |
|
||||
grep -v "data]$" |
|
||||
cut -c3-
|
||||
~~~
|
||||
|
||||
|
|
Chargement…
Référencer dans un nouveau ticket