Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl -X PUT --header 'Accept:application/json; charset=utf-8' http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/encoder2/actions/restart --digest -u "user:password"
- <?php
- $url = 'http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/mystream/actions/restart';
- $username = 'user';
- $pass = 'password';
- $ch = curl_init();
- curl_setopt ( $ch, CURLOPT_URL, "$url");
- curl_setopt ( $ch, CURLOPT_POST, 1 );
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_USERNAME, "$username");
- curl_setopt($ch, CURLOPT_PASSWORD, "$password")
- curl_close ($ch);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement