ti metto tutta la risposta del server casalingo:
Codice PHP:
array(9) {
[
"Content-Type"
]=>
string(16) "application/json"
[
"Authorization"
]=>
string(248) "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJUSEVfSVNTVUVSIiwiYXVkIjoiVEhFX0FVRElFTkNFIiwiaWF0IjoxNTgxOTM2MzQ2LCJuYmYiOjE1ODE5MzYzNTYsImV4cCI6MTU4MTkzNjQwNiwiZGF0YSI6eyJ1c2VybmFtZSI6Im1hdHRlIn19.-Zk-bn3AetfttQPe_Dsks9IGm6oxg880h7PYqagz6NU"
[
"User-Agent"
]=>
string(21) "PostmanRuntime/7.22.0"
[
"Accept"
]=>
string(3) "*/*"
[
"Cache-Control"
]=>
string(8) "no-cache"
[
"Postman-Token"
]=>
string(36) "83b4264e-d05a-4f17-b266-0c9c9912cd6d"
[
"Host"
]=>
string(16) "dominio"
[
"Accept-Encoding"
]=>
string(17) "gzip, deflate, br"
[
"Connection"
]=>
string(10) "keep-alive"
}
questa invece la risposta del server su hosting condiviso:
Codice PHP:
array(11) {
[
"Host"
]=>
string(15) "www.sito.it"
[
"X-Real-Ip"
]=>
string(13) "31.197.139.26"
[
"X-Forwarded-Port"
]=>
string(3) "443"
[
"X-Forwarded-Proto"
]=>
string(5) "https"
[
"Connection"
]=>
string(5) "close"
[
"Content-Type"
]=>
string(16) "application/json"
[
"User-Agent"
]=>
string(21) "PostmanRuntime/7.22.0"
[
"Accept"
]=>
string(3) "*/*"
[
"Cache-Control"
]=>
string(8) "no-cache"
[
"Postman-Token"
]=>
string(36) "cbca0684-f01e-4336-a761-562551b649ca"
[
"Accept-Encoding"
]=>
string(17) "gzip, deflate, br"
}