Comments (7)
It certainly works like this on purpose, it is not a mistake. The documentation should probably be clarified to make this less surprising.
The idea is to not create a file in case of errors so it creates the file on demand when the first data arrives. But if no data ever arrives...
from curl.
Daniel Stenberg wrote:
It certainly works like this on purpose, it is not a mistake. The documentation
should probably be clarified to make this less surprising.The idea is to not create a file in case of errors so it creates the file on
demand when the first data arrives. But if no data ever arrives...
Seems like you could create the file once the data transfer is complete,
if it's not been created already on demand. I think that would be better
than documenting a complicating special case.
see shy jo
from curl.
The current behavior sounds counter-intuitive to me, too. I would expect that successful download of a remote empty file results in a local empty file.
from curl.
I wouldn't mind having it create the file if it ends successfully!
from curl.
@joeyh feel like making a patch for it?
from curl.
I have proposed a patch for this on the mailing-list:
http://thread.gmane.org/gmane.comp.web.curl.library/45327/focus=45328
from curl.
I have merged the fix for this issue: a9e4674...992a731
from curl.
Related Issues (20)
- Test cases sometimes timeout HOT 1
- aws-sigv4 failing to calculate the right signature when using "content-type: multipart/form-data" HOT 7
- utf8 in powershell core HOT 8
- Having error alert when ./configure curl in a folder with an ".app" extension on macOS 14 HOT 3
- Please support setting adjustment algorithm sequence HOT 2
- `curl_multi_perform` not updating `running_handles` after redirection success HOT 5
- Build curl for ios done, but Xcode Run on ios with Undefined symbol error HOT 2
- occasional crash when execute curl_easy_perform
- occasional crash when execute curl_easy_perform HOT 3
- connection is still name resolving, cant reuse? HOT 4
- hyper adds suprise Content-Length header HOT 10
- curl: (35) mbedTLS: ssl_init failed when compiled with mbedtls 3.6 HOT 2
- curl 56 SSL_read error erno 0 with openssl >= 3.2 & curl 8.7.1 HOT 10
- Segfault HOT 1
- http/2: Large transfers have high overhead in Curl_bufq_len HOT 5
- Version 8.7.1 only in repo tag and tarball name, not in code HOT 4
- HTTP/2 + CURLOPT_FAILONERROR returns incorrect error code CURLE_RECV_ERROR HOT 2
- HTTP/2 + TLS spends a lot of time in recv (buffering issue) HOT 8
- File name not be transformed HOT 2
- domain name with trailing dot fails the certificate check when using gnutls HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from curl.