Package: curl Version: 8.11.1-1~bpo12+1 Severity: normal X-Debbugs-Cc: c...@tuatha.org
Dear Maintainer, Attempting to specify "application/x-pkcs12" as the content type for a file upload form field causes a seemingly irrelevant error: $ echo > localfile $ curl -F 'field=@localfile;type=application/x-pkcs12' https://www.google.com/ curl: (26) Failed to open/read local data from file/application while using eg: "application/json" works fine: $ echo > localfile $ curl -F 'field=@localfile;type=application/x-pkcs12' https://www.google.com/ <... an error message from Google's endpoint, as expected ...> It *seems* to be the numbers in the content-type it is objecting to; if I try types without numbers, like "type=application/x-pkcs" it seems to work but "type=1" fails. I am guessing that some regular expression in the argument parser is failing to extract the full type of the form field and is terminating on a non-alphabetic character? Colm -- System Information: Debian Release: 12.9 APT prefers stable-updates APT policy: (900, 'stable-updates'), (900, 'stable-security'), (900, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.12.9+bpo-amd64 (SMP w/16 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages curl depends on: ii libc6 2.36-9+deb12u9 ii libcurl3-gnutls 8.11.1-1~bpo12+1 ii zlib1g 1:1.2.13.dfsg-1 curl recommends no packages. curl suggests no packages. -- no debconf information