Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $username = 'batb-xxxxxx';
- $password = 'XXXXXXXXXXXX';
- $context = stream_context_create(array(
- 'http' => array(
- 'header' => "Authorization: Basic " . base64_encode("$username:$password")
- )
- ));
- // fichier source
- $json = file_get_contents('http://crm.capvaleur.group/export', false, $context);
Add Comment
Please, Sign In to add comment