ELSEIF
Your brief EB
362 stories from 111 feeds 410 clusters Refreshed 4 minutes ago next pull 11:22

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.

WHY IT MATTERS

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 source

The three things worth knowing

01

The -O flag previously returned an error when a URL lacked a filename part, but now it falls back to alternative naming strategies.

02

curl uses the right-most directory name from the URL if available, or the extension-less string curl_response if no path exists.

03

The --no-clobber flag can prevent curl from overwriting existing files that share the newly generated default names.

THE CLUSTER

Same story, 1 feed.

ORDERED BY FIRST SEEN
haxx.se via Lobsters a filename when none exists Open ↗