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: How can I just get the output name?
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Paul Gilmartin via curl-users <curl-users_at_lists.haxx.se>
Date: Sun, 24 Mar 2024 09:29:01 -0600
On 3/24/24 06:41:09, ToddAndMargo via curl-users wrote:
> ...
> All I want is the "duo-win-login-4.3.0.exe" text.
> Using cURL, is there a way to get?
> ...
Me, too. In desperation I do something like:
mkdir -p RO &&
chmod a-w RO &&
( cd RO ) ||
exit $?
FILE=$( cd RO && curl --location \
--write-out %{filename_effective} \
--remote-name --remote-header-name "$1" )
... the fetch to a read-only directory fails, but
FILE is set for use in a further command.
Date: Sun, 24 Mar 2024 09:29:01 -0600
On 3/24/24 06:41:09, ToddAndMargo via curl-users wrote:
> ...
> All I want is the "duo-win-login-4.3.0.exe" text.
> Using cURL, is there a way to get?
> ...
Me, too. In desperation I do something like:
mkdir -p RO &&
chmod a-w RO &&
( cd RO ) ||
exit $?
FILE=$( cd RO && curl --location \
--write-out %{filename_effective} \
--remote-name --remote-header-name "$1" )
... the fetch to a read-only directory fails, but
FILE is set for use in a further command.
-- gil -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2024-03-24