mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-28 03:00:55 +00:00
Removed index on response
The $curl->response seems to be all that is needed, the 'json' index was invalid when I tried it.
This commit is contained in:
@@ -18,4 +18,4 @@ $curl = new Curl();
|
||||
$curl->setDefaultJsonDecoder($assoc = true);
|
||||
$curl->setHeader('Content-Type', 'application/json');
|
||||
$curl->post('https://httpbin.org/post', $data);
|
||||
var_dump($curl->response['json']);
|
||||
var_dump($curl->response);
|
||||
|
||||
Reference in New Issue
Block a user