E-Ink News Daily

Back to list

a filename when none exists

curl 8.10.0 improves the -O/--remote-name option by automatically generating a local filename when the URL contains no filename part. It first tries extracting the last directory from the path, and falls back to a default name 'curl_response' if neither filename nor path exists. Previously, such URLs would simply error out with 'Remote filename has no length'.

Background

curl is a widely used command-line tool for data transfer via URLs, created by Daniel Stenberg and first released in March 1998. The -O option is one of its most commonly used features for downloading remote files.

Source
Lobsters
Published
Aug 19, 2026 at 03:29 PM
Score
6.0 / 10