curl / Mailing Lists / curl-users / 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.

Re: Reference upload glob pieces in output filename

From: Nicolas George via curl-users <curl-users_at_lists.haxx.se>
Date: Wed, 22 Apr 2026 11:09:31 +0200

Hi.

Daniel Stenberg via curl-users (HE12026-04-22):
> curl -T 'file{1,2,3}' https://upload.example/{this,that} -o 'response-!1-#1'

Note that if you write it like that, without quotes, the shell is doing
the expansion, and curl is seeing:

curl -T 'file{1,2,3}' https://upload.example/this https://upload.example/that -o 'response-!1-#1'

Regards,

-- 
  Nicolas GEorge
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2026-04-22