You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to read these files using curl, perhaps with a special command line option to ignore size? Is this considered a bug or intended behavior?
Alternatively, we unconditionally take the zero size as "size unknown" and just try to continue and see what happens. The size is mostly used for making a more accurate progress meter anyway.
Reading files from the local file system using the
file://
protocol works fine:However if the file is located on a procfs or debugfs, no result is returned:
curl probably does a check for size, since fstat shows size 0. See strace excerpt:
Compare that to
cat
which probably ignores size and does a while buff != EOL in this strace excerpt:Is there a way to read these files using curl, perhaps with a special command line option to ignore size? Is this considered a bug or intended behavior?
The text was updated successfully, but these errors were encountered: