Re: curl.exe returns before output file written
Date: Thu, 20 Mar 2008 22:32:42 +0100 (CET)
On Thu, 20 Mar 2008, John Fournier wrote:
> curl.exe -d "@outFile.xml" -o "responseFile.xml" -H "Content-Type:
> text/xml" -k "http://www.test.com"
> Then, immediately after curl.exe returns from executing, the
> responseFile.xml file is parsed for the returned xml data. Previously this
> method has always worked. However there is now one customer site where the
> responseFile.xml is not being completely written out before curl returns.
> Thus the xml parsing of the returned file fails because it is not a complete
> file. When manually viewing the file after the fact it is complete and
If that is in fact true, then it is because your file system is funky. curl
always writes everything out before it exits. If it doesn't show to you, it is
because your (file) system is playing tricks on you.
> curl.exe version is 7.15.1 (i386-pc-win32)
Just note that this is a pretty old version and we've released many later ones
with many bugs fixed.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2008-03-20