I saw some similar questions here in satckoverflow, but I did not find an answer to this problem.
I have a Result that brings me the following json:
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 07 Jul 2017 19:44:04 GMT
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
callId: 12476bea-0ebc-409d-86cc-69aac003e356
Strict-Transport-Security: max-age=63072000
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
{"paginacao":{"pagina":1,"quantidadeRegistros":10,"quantidadeTotalRegistros":10}
I have a json_decode ($ result, true) element that can not separate the header, so it does not return the object as needed, which would only be from {"page ...
How to proceed in this case, I'm using curl_setopt () to consume json at source