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.

Re: -I Flag

From: Paul Gilmartin via curl-users <curl-users_at_lists.haxx.se>
Date: Tue, 12 Jul 2022 21:22:37 -0600

On Jul 12, 2022, at 21:01:42, Keefe Tang wrote:
>
> The output of -I is cleaner but most times, I want to test using the
> GET method rather than HEAD.
>
Here's a command which does both a HEAD and a GET:
   curl --location --fail --show-error --etag-compare example.com.ETag --etag-save example.com.ETag --time-cond ./example.com --remote-time --xattr --output example.com --dump-header example.com.headers https://example.com

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