Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
1,322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. <?php
  2.  
  3. $array = array('username' => $email, 'password' => $password, )
  4.  
  5. $ch = curl_init();
  6. curl_setopt($ch, CURLOPT_URL, 'https://www.instagram.com/accounts/login/ajax/?hl=id');
  7. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  8. curl_setopt($ch, CURLOPT_POST, 1);
  9. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Host: www.instagram.com'
  10. 'User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0'
  11. 'Accept: */*'
  12. 'Accept-Language: en-US,en;q=0.5'
  13. 'Accept-Encoding: gzip, deflate, br'
  14. 'Referer: https://www.instagram.com/accounts/login/?hl=id&source=auth_switcher'
  15. 'X-CSRFToken: f0xyug8I2CcMDWWertEBlZj6Ae5g42Es'
  16. 'X-Instagram-AJAX: ecba78c274ce'
  17. 'X-IG-App-ID: 936619743392459'
  18. 'Content-Type: application/x-www-form-urlencoded'
  19. 'X-Requested-With: XMLHttpRequest'));
  20. curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement