4 ms·
curl --max-time 1 https://youcantdownloadthisimage.online/lisa.jpg https://youcantdownloadthisimage.online/lisa.jpg > lisa.jpg
by dobladov 5y ago
curl --max-time 1 https://youcantdownloadthisimage.online/lisa.jpg https://youcantdownloadthisimage.online/lisa.jpg > lisa.jpg
- styluss 5y agoAdd -N, --no-buffer Disables the buffering of the output stream. In normal work situations, curl will use a standard buffered output stream that will have the effect that it will output the data in chunks, not necessarily exactly when the data arrives. Using this option will disable that buffering. and it works
- shrx 5y agoResults in an empty file.
- dobladov 5y agoIncrease the time a bit, it looks like sometimes it takes more time to download curl --max-time 2 https://youcantdownloadthisimage.online/lisa.jpg https://youcantdownloadthisimage.online/lisa.jpg > lisa.jpg
- shrx 5y agoNevermind, looks like MobaXterm shell provides a non-standard curl implementation: $ which curl curl: aliased to _tob curl After installing curl with apt-get it works.
- hdjjhhvvhga 5y agoI hate it when people do that. You can wonder for hours why something obvious doesn't work as it should and in the end discover someone decided to implement something substandard, often for no good reason.
- ducktective 5y agothat's every distro and *nix derivation
- judge2020 5y agoAnd powershell!
- hdjjhhvvhga 5y agoWell, Windows too. I recently had to set up something simple on a Windows 10 machine, I quickly checked by tab-completion if a python binary is available so I copied by setup script only to discover someone smart decided to redirect the binary to the Windows Store. Yes, I know the rationale behind this, but still. Just like hijacking nxdomain.
- post-it 5y agoEspecially curl. https://daniel.haxx.se/blog/2021/05/20/i-could-rewrite-curl/ https://daniel.haxx.se/blog/2021/05/20/i-could-rewrite-curl/