Advertisement
Guest User

PHP INDONESIA

a guest
Apr 19th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. $ch = curl_init('https://www.forever21.com/Login/Login.aspx?br=f21');
  2. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  3. curl_setopt($ch,CURLOPT_POST,1);
  4. curl_setopt($ch,CURLOPT_RETURNTRANSFER,TRUE);
  5. curl_setopt($ch,CURLOPT_POST,TRUE);
  6. curl_setopt($ch,CURLOPT_FOLLOWLOCATION,TRUE);
  7. curl_setopt($ch,CURLOPT_COOKIEFILE, "$config");
  8. curl_setopt($ch,CURLOPT_COOKIEJAR, "$config");
  9. curl_setopt($ch,CURLOPT_POSTFIELDS,"UserName=$email&ctl00%24MainContent%24LoginForm%24Password=$pass");
  10. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  11. $result = curl_exec($ch);
  12. echo "$result";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement