How can I do a HTTP basic authentication using php, knowing that the server needs a username AND an access key, and that the result has to be in JSON. I have found th