Added api.request tmp file when sending request (to debug)
This commit is contained in:
parent
b80871bccc
commit
b872347424
|
@ -113,7 +113,8 @@
|
||||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
||||||
$response = curl_exec($curl);
|
$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);
|
file_put_contents(TMP_DIR.'/api.response', $response);
|
||||||
|
|
||||||
/* (3) Close request */
|
/* (3) Close request */
|
||||||
|
|
|
@ -97,7 +97,8 @@
|
||||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
||||||
$response = curl_exec($curl);
|
$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);
|
file_put_contents(TMP_DIR.'/api.response', $response);
|
||||||
|
|
||||||
/* (3) Close request */
|
/* (3) Close request */
|
||||||
|
|
Loading…
Reference in New Issue