Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

ปุ่มแปลไทยจะเปิดบทความผ่าน Google Translate เพื่อแปลอัตโนมัติ โดยคงโค้ดและคำสั่งไว้ตามต้นฉบับ

Linux Commands / IT Support Guides

Inspect an HTTPS endpoint from Linux with curl

A reachable TCP port does not prove an HTTPS request works. Use a bounded HTTP request to inspect protocol behavior without downloading a large response body.

Compiled for Sorlavit Kim · Published · Updated · 1 min read

Environment and inputs: Linux · Bash-compatible shell; package and service names vary by distribution

Try the diagnostic command

Use the stated shell and platform. Replace sample domains, addresses, services and paths with values from the system you are authorized to support.

curl --head --connect-timeout 5 --max-time 15 https://example.com

How to read the result

The response includes HTTP headers if the request succeeds. HEAD may be unsupported or handled differently from GET; a 405 response can reflect the method rather than an outage.

What to do next

Replace the URL with the affected endpoint, compare the status and redirects with expected behavior, and use a normal approved GET when HEAD is unsuitable.

Before you make a change

Do not add -k to hide certificate failures. Avoid copying authorization headers or session cookies into support evidence.

Share this article

Back to results