curl lib response getBody return binary string |
05-19-2020, 05:52 AM
(This post was last modified: 05-19-2020, 09:17 PM by sandip002. Edit Reason: include some code that already tried )
Today I'm trying to fetch some testing data from "https://jsonplaceholder.typicode.com/todos/1",
but when I get a response and try to get data it will give binary string. Code: $this->client = \Config\Services::curlrequest([ output: Code: ���RPP*-N-�LQ�R0�q3̒̒�T%+��Ԝ���b���N�U+H��-�I-IiIK�)N�7��S is anything I'm doing wrong. EDIT: I'm trying to get data in json or array format from api. ALREADY TRIED THINGS: Code: $data = $this->client->get('/todos/1'); |
Messages In This Thread |
curl lib response getBody return binary string - by sandip002 - 05-19-2020, 05:52 AM
RE: curl lib response getBody return binary string - by InsiteFX - 05-19-2020, 08:46 AM
|