Created
December 13, 2018 10:08
-
-
Save jeroneemou/e3f49c09e4fa1f1c5675635f4f799d06 to your computer and use it in GitHub Desktop.
Get Basic Auth header
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $username = "username"; | |
| $password = "password"; | |
| echo "Authorization: Basic " . base64_encode($username . ":" . $password); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment