--- a/Libraries/PrestaShopWebService.php
+++ b/Libraries/PrestaShopWebService.php
@@ -117,7 +117,9 @@
 			CURLOPT_HTTPHEADER => array( 'Expect:','content-type:text/xml' ),
 			CURLOPT_SSL_VERIFYHOST => 0,
 			CURLOPT_SSL_VERIFYPEER => 0
-        );
+		);
+		
+		error_log($url."\n\n", 3, 'var/logs/presta.log');
 
 		$session = curl_init($url);
 
@@ -134,8 +136,14 @@
 				$curl_options[$defkey] = $curl_params[$defkey];
 
 		curl_setopt_array($session, $curl_options);
+
+		error_log(json_encode($curl_options)."\n\n", 3, 'var/logs/presta.log');
+
 		$response = curl_exec($session);
 
+		error_log($response."\n\n", 3, 'var/logs/presta.log');
+		error_log("=====================================\n", 3, 'var/logs/presta.log');
+
 		$index = strpos($response, "\r\n\r\n");
 		if ($index === false && $curl_params[CURLOPT_CUSTOMREQUEST] != 'HEAD')
 			throw new PrestaShopWebServiceException('Bad HTTP response');
