Guest User

Untitled

a guest
Oct 25th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. $username = 'batb-xxxxxx';
  2.     $password = 'XXXXXXXXXXXX';
  3.     $context = stream_context_create(array(
  4.         'http' => array(
  5.             'header'  => "Authorization: Basic " . base64_encode("$username:$password")
  6.         )
  7.     ));
  8.  
  9.     // fichier source
  10.     $json = file_get_contents('http://crm.capvaleur.group/export', false, $context);
Add Comment
Please, Sign In to add comment