Skip to main content
Spelling cURL
Source Link
Syscall
  • 19.8k
  • 10
  • 44
  • 60

Getting only response header from HTTP POST using curlcURL

One can request only the headers using HTTP HEAD, as option -I in curl(1).

$ curl -I / 

Lengthy HTML response bodies are a pain to get in command-line, so I'd like to get only the header as feedback for my POST requests. However, HEAD and POST are two different methods.

How do I get curlcURL to display only response headers to a POST request?

Getting only response header from HTTP POST using curl

One can request only the headers using HTTP HEAD, as option -I in curl(1).

$ curl -I / 

Lengthy HTML response bodies are a pain to get in command-line, so I'd like to get only the header as feedback for my POST requests. However, HEAD and POST are two different methods.

How do I get curl to display only response headers to a POST request?

Getting only response header from HTTP POST using cURL

One can request only the headers using HTTP HEAD, as option -I in curl(1).

$ curl -I / 

Lengthy HTML response bodies are a pain to get in command-line, so I'd like to get only the header as feedback for my POST requests. However, HEAD and POST are two different methods.

How do I get cURL to display only response headers to a POST request?

Source Link
Jonathan Allard
  • 19.5k
  • 11
  • 57
  • 76

Getting only response header from HTTP POST using curl

One can request only the headers using HTTP HEAD, as option -I in curl(1).

$ curl -I / 

Lengthy HTML response bodies are a pain to get in command-line, so I'd like to get only the header as feedback for my POST requests. However, HEAD and POST are two different methods.

How do I get curl to display only response headers to a POST request?