Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $command = json_encode(array('command'=>'test'));
- $context = stream_context_create(array('http' => array(
- 'method' => "POST",
- 'header' => "Content-Type: text/xml",
- 'content' => $command)));
- $file = file_get_contents(
- "http://ascent.bluewallgroup.com:8002:/bluewall", // << your url here
- false,
- $context);
- $msg = json_decode($file, true);
- print $msg["Message"]."\n";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement