Linux

curl

SafeHTTP client

curl -I <url>

Requests a URL; -I headers, -v verbose, -o save, -L follow redirects.

Examples

  • curl -I https://example.comCheck response headers
  • curl -v https://example.comInspect TLS/connection

Syntax

curl [-I] [-v] [-o <file>] [-L] <url>

Before you run it

Usually read-only; POST has side effects.

Used when you see

SSL / certificate errors
2
Inspect via HTTP-v shows TLS detail
See the whole flow →
Connection fails through a proxy
2
Test with curl both via proxy and direct
See the whole flow →

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store