Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

base64 encode username password php example

$auth = base64_encode($uname . ":" . $pass);
curl_setopt($curl, CURLOPT_HTTPHEADER, array("Authorization: Basic $auth",
                                              "Accept: application/json",
                                              "Content-Type: application/json"));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #encode #username #password #php
ADD COMMENT
Topic
Name
3+2 =