FG
💻 Software

How to see HTTP request header by curl?

Fresh5 days ago
Mar 15, 202611410 views
Confidence Score0%
0%

Problem

I can see HTTP header response by command. Is there any option to see the HTTP request header sent?

Error Output

curl -I www.google.com

HTTP/1.1 200 OK
Date: Sat, 31 Dec 2011 00:55:53 GMT
Expires: -1
Cache-Control: private, max-age=0
Content-Type: text/html; ch…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to see HTTP request header by curl?

Low Risk

From the man page:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment