Re: supporting --longopt=value

2025-07-01 Thread Paul Gilmartin via curl-users
On 7/1/25 03:12, Daniel Stenberg via curl-users wrote: Many other command line tools instead uses the equals-sign-approach, where the argument is instead specified immediately next to the flag like this:   curl --user-agent=curl-2000 https://example.com/ I am now proposing a PR for curl th

Re: [RFE] Improve etag handling with --etag-compare-update

2025-04-29 Thread Paul Gilmartin via curl-users
On 4/29/25 01:46, Aleksei via curl-users wrote:  In many situations you want to use an existing etag in the request to avoid  downloading the same resource again but also save the new etag if it has  indeed changed, by using both etag options --etag-save and --etag-compare,  in the same comm

Re: [RFE] Improve etag handling with --etag-compare-update

2025-04-28 Thread Paul Gilmartin via curl-users
On 4/28/25 02:37, Daniel Stenberg via curl-users wrote: On Mon, 28 Apr 2025, Aleksei via curl-users wrote: I'm trying to implement a "download only if updated on a remote resource" functionality with a curl script using etags. Currently the etag file saved with --etag-save becomes useless afte

Re: make --url support a file with URLs

2025-01-27 Thread Paul Gilmartin via curl-users
On 1/27/25 05:54, Daniel Stenberg via curl-users wrote: Hey, Over the years, people have requested an easier way to provide a list of URLs to curl and have it download them all. With my new PR [*], you can write "curl --url @file" and curl will download all the URLs in the provided file as if

Re: [Feature Request] Use checksum to verify download

2025-01-20 Thread Paul Gilmartin via curl-users
On 1/20/25 09:22, Falk via curl-users wrote: I understand that the way checksums must be handled during the download is not compatible with curl's implementation. I've created a prototype to check the API and behavior (https://github.com/falk-werner/fetch) and I've encountered all the things y

Re: (Feature request) Ignore if file exist

2024-11-13 Thread Paul Gilmartin via curl-users
On 11/13/24 07:44, Tobias Wendorff via curl-users wrote: Am 2024-11-13 15:18, schrieb Rodrigo s via curl-users: Why not just create a single command "--ignore-if-file-exists" Got recently added as `--skip-existing`: https://github.com/curl/curl/pull/13993 . But that would seem never to refres

Re: %{filename_effective but not transmit file?

2024-09-12 Thread Paul Gilmartin via curl-users
On 9/12/24 00:40, Daniel Stenberg via curl-users wrote: 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 fina

Re: %{filename_effective but not transmit file?

2024-09-11 Thread Paul Gilmartin via curl-users
On 9/11/24 19:09, Dan Fandrich via curl-users wrote: On Wed, Sep 11, 2024 at 05:47:50PM -0600, Paul Gilmartin via curl-users wrote: Is it possible to get %{filename_effective without transmitting the file? I'm trying to make the ETag name pend on that, something like: "--et

%{filename_effective but not transmit file?

2024-09-11 Thread Paul Gilmartin via curl-users
Is it possible to get %{filename_effective without transmitting the file? I'm trying to make the ETag name pend on that, something like: "--etag-compare %{filename_effectiv.etag" So far, the best I can do is perform a trial fetch, directing the output to a read-only directory, failing but retur

Re: SIGINT vs. SIGTERM?

2024-08-25 Thread Paul Gilmartin via curl-users
Don't consider this a problem report; I've worked around it. On 8/25/24 15:20, Daniel Stenberg wrote: On Sun, 25 Aug 2024, Paul Gilmartin via curl-users wrote: Running curl from a script I attempt to terminate a long download.    kill -INT  curl has no effect    kill -TERM curl

SIGINT vs. SIGTERM?

2024-08-25 Thread Paul Gilmartin via curl-users
Running curl from a script I attempt to terminate a long download. kill -INT curl has no effect kill -TERM curl terminates curl. Does curl trap SIGINT for some special behavior, leaving the default SIGTERM? -- Thanks, gil -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users