TECH Signal 377
curl 8.10.0 defaults to directory names or 'curl_response' when the -O flag encounters URLs without filenames
curl 8.10.0 changes the -O flag behavior to generate a local filename from the right-most directory path or a default string instead of failing when a URL lacks a filename part.
Scripts using curl -O will no longer error out on path-only URLs, but they will silently create files named curl_response or with directory names instead of failing. This changes the exit code behavior for those URLs from an error to a success, which could mask issues in pipelines that relied on the previous failure. Operators should verify if existing workflows depend on the error condition to catch malformed URLs.
Written by elseif from the cluster below · every claim links back to a sourceThe three things worth knowing
The -O flag previously returned an error when a URL lacked a filename part, but now it falls back to alternative naming strategies.
curl uses the right-most directory name from the URL if available, or the extension-less string curl_response if no path exists.
The --no-clobber flag can prevent curl from overwriting existing files that share the newly generated default names.
THE CLUSTER
↗