Re: %{filename_effective but not transmit file?

Daniel Stenberg via curl-users <[email protected]> Thu, 12 Sep 2024 08:40:11 +0200 (CEST)
Newsgroups gmane.comp.web.curl.general
Message-ID <[email protected]>
On Thu, 12 Sep 2024, Daniel Stenberg via curl-users wrote:

> Since --head implies that the body is not saved, we can actually make this 
> work fairly easy...

Eh, no. I was not thinking right. It still needs to save the headers in that 
final name that it will not know until several headers have already arrived. 
So not *that* simple.

Basically what we need to do is to make the tool keep the initial set of 
headers in memory first before it has decided what file name to use, then save 
all the headers in the file name once it knows. That would fix this 
limitation.

-- 

  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html