I have a bat file which calls the API using cURL and output the JSON response in file. However, many times API refuse the connection and I get bad response from API that writes