Make sure to write all post data to file.