Make output write more atomic in ecp-curl
This PR improves the output writing in ecp-curl
to only open the output file after the response has been collected, so that interrupted calls don't produce a corrupt/empty output file.
This PR improves the output writing in ecp-curl
to only open the output file after the response has been collected, so that interrupted calls don't produce a corrupt/empty output file.