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
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.