cURL minor corrections and improvements