Re: How can I just get the output name?

Paul Gilmartin via curl-users <[email protected]>
Newsgroups gmane.comp.web.curl.general
Message-ID <[email protected]>
On 3/26/24 10:10:57, Dan Fandrich via curl-users wrote:
> 
> This will do it:
> 
>    curl -sI -o /dev/null --write-out '%header{content-disposition}\n' \
>      https://dl.duosecurity.com/duo-win-login-latest.exe | \
>    sed -e 's/^.*="//' -e 's/".*$//'
> 
> This requests only the headers from the site and writes out just the
> Content-Disposition: header, ...
> .
Does that transfer and discard the entire payload, thus spending
time and bandwidth?

-- 
gil
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.