Posts by Thiago Sousa • 11 points
1 post
-
1
votes0
answers110
viewsQ: Error authenticating Json with php by passing header
I have a small problem when consulting a URL with file JSON. Basically my code returns bool(false). $usuario = 'root'; $senha = '123'; $header = 'Authorization: Basic ' . base64_encode($usuario .…