w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
HTTP basic authentication fails using "Authorization: Basic ".base64_encode("$user:$pass")

It would be helpful if you could post whatever error message you're seeing, or you can find in the error logs.

It might be that your hosting provider doesn't allow outgoing connections to port 9080, or is blocking your connection based on some other criteria.

You might be able to debug your script if you print out the value of base64_encode("$username:$password") - perhaps one of these variables isn't getting set to the correct value.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.