curl won't download empty file -


curl -o foo.txt http://test.barrycarter.info/emptyfile.txt curl -o http://test.barrycarter.info/emptyfile.txt

i tried both above, , neither foo.txt nor emptyfile.txt created.

how can make curl create them? knowing file (url) exists , empty can useful.

in particular, i'm trying mirror geonames daily updates, , happens today's "http://download.geonames.org/export/dump/alternatenamesdeletes-2015-05-28.txt" file empty. useful know instead of not downloading it.

(note: created emptyfile above testing, since geonames' file disappear within day)

curl didn't use store on 0 byte downloads, since version 7.42.0.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -