Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $array = array('username' => $email, 'password' => $password, )
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'https://www.instagram.com/accounts/login/ajax/?hl=id');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Host: www.instagram.com'
- 'User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0'
- 'Accept: */*'
- 'Accept-Language: en-US,en;q=0.5'
- 'Accept-Encoding: gzip, deflate, br'
- 'Referer: https://www.instagram.com/accounts/login/?hl=id&source=auth_switcher'
- 'X-CSRFToken: f0xyug8I2CcMDWWertEBlZj6Ae5g42Es'
- 'X-Instagram-AJAX: ecba78c274ce'
- 'X-IG-App-ID: 936619743392459'
- 'Content-Type: application/x-www-form-urlencoded'
- 'X-Requested-With: XMLHttpRequest'));
- curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement