curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

-I Flag

From: Keefe Tang via curl-users <curl-users_at_lists.haxx.se>
Date: Wed, 13 Jul 2022 11:01:42 +0800

I understand when you run curl with the -I flag (or --head) the
request method is HEAD.

If I combine my command with "-X GET", will the request method be
overridden to GET instead?

Is there any downside to doing this that I may not be considering?

The output of -I is cleaner but most times, I want to test using the
GET method rather than HEAD.

Keefe
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2022-07-13