Weiter geht's mit cURL. Zum testen von HTTP Request unverzichbar.
HTTP Response auf einen String oder Regex prüfen
curl -s http://itsmethemojo.com/blog/2015/07/29/linux-tools-curl/ | grep "String oder Regex"
curl -s http://itsmethemojo.com/blog/2015/07/29/linux-tools-curl/ | grep -e "R[a-z]\{3\}x"Einmal alle HTTP Header anzeigen. Super um Caching Infos oder Redirects zu überprüfen.
curl -sI http://itsmethemojo.com/blog/
curl -sI http://itsmethemojo.com/blog/ | grep Cache-ControlRequest Zeit messen.
curl -o /dev/null -s -w %{time_total} http://itsmethemojo.com/blog/
curl -o /dev/null -s -w %{time_total} http://itsmethemojo.com/blog/; echo "";Mit dem Host Header spielen.
curl -sH "Host: www.wetter24.de" http://www.wetter24.de | grep "<title"
curl -sH "Host: www.weer.nl" http://www.wetter24.de | grep "<title"htaccess credentials übergeben.
curl -sI http://itsmethemojo.com/blog/beispiele/geheim/index.html
curl -sI -utestuser:testpass http://itsmethemojo.com/blog/beispiele/geheim/index.html