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: empty name in a multipart formpost
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Bastian Jesuiter via curl-users <curl-users_at_lists.haxx.se>
Date: Thu, 3 Dec 2026 22:15:57 +0100
Hi,
I would argue that that is rather similar to the removing and explicitly
empty Headers.
Thus I could see the semicolon be used here as well, as it is similar and
rare behavior.
"semicolon"
https://everything.curl.dev/http/modify/headers.html#:~:text=name%20with%20a-,semicolon,-.%20Like%20this%3A
That was the first thing that came to mind when I read the issue.
Bastian
On Thu, 3 Dec 2026, 22:02 Daniel Stenberg via curl-users, <
curl-users_at_lists.haxx.se> wrote:
> 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.html
>
Date: Thu, 3 Dec 2026 22:15:57 +0100
Hi,
I would argue that that is rather similar to the removing and explicitly
empty Headers.
Thus I could see the semicolon be used here as well, as it is similar and
rare behavior.
"semicolon"
https://everything.curl.dev/http/modify/headers.html#:~:text=name%20with%20a-,semicolon,-.%20Like%20this%3A
That was the first thing that came to mind when I read the issue.
Bastian
On Thu, 3 Dec 2026, 22:02 Daniel Stenberg via curl-users, <
curl-users_at_lists.haxx.se> wrote:
> 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.html
>
-- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2026-12-03