Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?PHP
- $username = "mediagoeshere_iso";
- $password = "6tqOhXkfVWqY50VLCQATm2";
- $remote_url = 'https://23.100.76.237:9657/api/feeds/InventoryFeed';
- // Create a stream
- $opts = array(
- 'http'=>array(
- 'method'=>"GET",
- 'header' => "Authorization: Basic " . base64_encode("$username:$password")
- ),
- "ssl"=>array(
- "verify_peer"=>false,
- "verify_peer_name"=>false,
- ),
- );
- $context = stream_context_create($opts);
- // Open the file using the HTTP headers set above
- $file = file_get_contents($remote_url, false, $context);
- print($file);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement