curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support. 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 Daniel himself.

wcurl default filename: index.html vs. curl_response

From: Samuel Henrique via curl-library <curl-library_at_lists.haxx.se>
Date: Mon, 25 Nov 2024 23:24:28 +0000

Hello curl developers,

We are working on having wcurl automatically percent-decode output
filenames[0], and we can also decide which filename we want to use as a
default (without relying on a recent curl release), the two options are 1)
index.html and 2) curl_response.

I don't think there's much to discuss, the benefit of using option 1 is to be
closer to wget, while the benefits of using option 2 are best described on this
comment by bagder[1]:

> 1. mentions curl (answers who saved it)
> 2. says it is a response
> 3. does not use an extension (because people will think the extension means
> something)

dfrandrich made a point about overwriting files, but for wcurl that would not
be an issue as it uses --no-clobber by default.

I was initially tempted to go with curl_response, but having it as index.html
makes it easier for wcurl to be a drop-in replacement to wget and I'm currently
divided between the two options.

Do curl developers have any opinion on this?
Me and sergiodj can certainly make a decision ourselves, but it's important to
to at least check if you're not against any of those two options.

Non-curl developers, also feel free to reply with your opinions.

[0] https://salsa.debian.org/debian/wcurl/-/merge_requests/4
[1] https://github.com/curl/curl/pull/13988#issuecomment-2186989819

Regards,

--
Samuel Henrique <samueloph>
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2024-11-26