Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://bilutv.org/ajax/player');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, "id=12865&ep=158713");
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
- $headers = array();
- $headers[] = 'Origin: http://bilutv.org';
- $headers[] = 'Accept-Encoding: gzip, deflate';
- $headers[] = 'Accept-Language: vi,en-US;q=0.9,en;q=0.8';
- $headers[] = 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 OPR/58.0.3135.47';
- $headers[] = 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8';
- $headers[] = 'Accept: */*';
- $headers[] = 'X-Requested-With: XMLHttpRequest';
- $headers[] = 'Connection: keep-alive';
- curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
- $result = curl_exec($ch);
- curl_close ($ch);
- print_r($result);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement