> For the complete documentation index, see [llms.txt](https://phiph.gitbook.io/foundation-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://phiph.gitbook.io/foundation-1/network/curl.md). Agents can also search and read this documentation through its [MCP server](https://phiph.gitbook.io/foundation-1/~gitbook/mcp).

# Curl

## Check redirected websites with only Headers

`curl -kIL https://www.sportchek.com`

* I - fetches only headers
* L - Follows HTTP redirects (3xx responses) automatically
* k - ignores self-signed certs

## Check cert expiry date

* `curl -vk https://example.com 2>&1 | grep expire`
* 2>&1 - Redirects standard error (where verbose output goes) to standard output so it can be processed
* v - verbose
* k - ignores self-signed certs
