Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ch = curl_init();
- curl_setopt($ch,CURLOPT_URL,'https://www.instagram.com/accounts/login/ajax/');
- curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
- curl_setopt($ch,CURLOPT_POST,1);
- curl_setopt($ch,CURLOPT_COOKIEFILE,'cookie-test.txt');
- curl_setopt($ch,CURLOPT_COOKIEJAR,'cookie-test.txt');
- curl_setopt($ch,CURLOPT_POSTFIELDS,'username=tama123&password=123tama');
- $result = curl_exec($ch);
- curl_close($ch);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement