Added api.request tmp file when sending request (to debug)

This commit is contained in:
xdrm-brackets 2017-09-27 09:43:44 +02:00
parent b80871bccc
commit b872347424
2 changed files with 4 additions and 2 deletions

View File

@ -113,7 +113,8 @@
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
/* (2) Save response to file */
/* (2) Save request+response to file */
file_put_contents(TMP_DIR.'/api.request', $postarray);
file_put_contents(TMP_DIR.'/api.response', $response);
/* (3) Close request */

View File

@ -97,7 +97,8 @@
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
/* (2) Save response to file */
/* (2) Save request+response to file */
file_put_contents(TMP_DIR.'/api.request', $postarray);
file_put_contents(TMP_DIR.'/api.response', $response);
/* (3) Close request */