Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL,"https://development.alpinebits.org/server-2015-07b/");
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
- curl_setopt($ch, CURLOPT_USERPWD, "someuser:somesecret");
- curl_setopt($ch, CURLOPT_HTTPHEADER, array("X-AlpineBits-ClientProtocolVersion: 2015-07b"));
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- $data = array(
- "action" => "getVersion"
- );
- curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
- $result = curl_exec ($ch);
- curl_close ($ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement