0
I saw some similar questions here on satckoverflow, but I found no answer to this problem.
I have a Result that brings me the json next:
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}
Turns out if I use json_decode($resul, true) it cannot separate the header so it does not return the object as needed it would be only from {"page...
How to proceed in this case, curl_setopt() to consume json at source
How are you doing to what this variable
$resul
return this request with theheader
? Edit the question and add the code.– Marcelo de Andrade
Check out my answer: https://answall.com/a/217424/5878
– Woss