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.
empty name in a multipart formpost
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Daniel Stenberg via curl-users <curl-users_at_lists.haxx.se>
Date: Thu, 3 Dec 2026 22:02:40 +0100 (CET)
Hello friends,
It was pointed out that curl doesn't properly support a multipart formpost
with a part using an empty, blank, name [1]: curl -F "=data" localhost
The most obvious way (the above) is already used by existing functionality and
omits the name completely which makes is a bad multipart formpost. So I need
to come up with a different way to specify an empty name, that at the same
time is highly unlikely to break existing scripts and use cases.
My current approach [2] is to have "! " (an exclamation mark and a single
space) have this magic meaning: curl -F "! =data" localhost. (This change is
planned to get merged in the 8.25.0 release cycle.)
I could use some ideas and brainstorm on a better syntax or way to specify
this that maybe is a little less strange!
[1] = https://github.com/curl/curl/issues/24207
[2] = https://github.com/curl/curl/pull/24229
Date: Thu, 3 Dec 2026 22:02:40 +0100 (CET)
Hello friends,
It was pointed out that curl doesn't properly support a multipart formpost
with a part using an empty, blank, name [1]: curl -F "=data" localhost
The most obvious way (the above) is already used by existing functionality and
omits the name completely which makes is a bad multipart formpost. So I need
to come up with a different way to specify an empty name, that at the same
time is highly unlikely to break existing scripts and use cases.
My current approach [2] is to have "! " (an exclamation mark and a single
space) have this magic meaning: curl -F "! =data" localhost. (This change is
planned to get merged in the 8.25.0 release cycle.)
I could use some ideas and brainstorm on a better syntax or way to specify
this that maybe is a little less strange!
[1] = https://github.com/curl/curl/issues/24207
[2] = https://github.com/curl/curl/pull/24229
-- / daniel.haxx.se || https://rock-solid.curl.dev -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2026-12-03