cURL / Mailing Lists / curl-users / Single Mail


curl.exe returns before output file written

From: John Fournier <>
Date: Thu, 20 Mar 2008 12:56:48 -0500

Hello All,

I have an application which uses curl by submitting an xml file to a
website and then receiving a return xml file in response:

 curl.exe -d "@outFile.xml" -o "responseFile.xml" -H "Content-Type:
text/xml" -k ""

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 correct.

My first question is whether curl.exe should have completed writing of
the output file before returning? Is there a setting for curl to verify
the file has been completely written out?

Other info:
curl.exe version is 7.15.1 (i386-pc-win32)
The output file is being written to the same server on which curl.exe is
The customer's network is using NAT.

Any ideas as to what could be causing this problem?

Thanks in advance,
John Fournier

Skyward/Customer Communication

This is a transmission from Skyward, Inc. and may contain information which is privileged, confidential, and protected by service work privileges. The response is in direct relationship to the information provided to Skyward. If you are not the addressee, note that any disclosure, copying, distribution, or use of the contents of this message is prohibited. If you have received this transmission in error, please destroy it and notify us immediately at 715-341-9406.
Received on 2008-03-20