Curl Command To Test Web Page Response Headers

curl -sSLIXGET

To explain:

  • -s flag will make curl silent.
  • -S flag (capital s) will show any errors produced (if things fail).
  • -L flag allows curl to look for and follow redirects.
  • -I flag (lower case L) tells curl to fetch the header only.
  • -X flag means that we will issue a GET request.

Add new comment

The content of this field is kept private and will not be shown publicly.