Curl

Test Pattern sur Page de Vie :

http_proxy= curl -sS -H "Host: monsite.fr"

http://localhost | grep ALL_UP

Autres commandes :

unset http_proxy

curl -H "host: www.site.web" -L localhost:8080/?
curl -I -H "host: www.site.web" -L localhost
curl -I -H "host: www.site.web" -L localhost/user/register
curl -I -H "host: www.site.web" -L localhost/sites/default/files/0340.jpg
lynx localhost/server-status
curl -s -H 'Host: www.site.web' 95.131.136.68 | grep -i WEB_CoteMaison/HOM

Temps Affichage Page :

time http_proxy= curl -I -H "Host:www.site.web" http://localhost

Curl https local :

time curl -k -H "Host: www.monsite.com" https://0:443/uri/de/test

Curl sur une api en local :

curl -svo /dev/null -H "Host: www.site.web" "http://localhost/api/rest/v2/categories?contour=pro&depth=7&detailLevel=full"

Faire une purge dans le cache Varnish :

http_proxy= curl -X BAN -H "Host: www.site.web" "http://localhost"

Curl avec User/Password (htaccess) :

curl -IH "host: www.site.web" localhost/ -u "user:password"
Last updated on 29th Mar 2017