Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2016
497
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. $username = "myemail@example.com";
  2. $password = "mypassword";
  3.  
  4. $url='https://www.lendingclub.com/account/login.action?login_email='.$username.'&login_password='.$password;
  5. $agent= 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36';
  6.  
  7. $ch = curl_init();
  8. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  9. curl_setopt($ch, CURLOPT_VERBOSE, true);
  10. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  11. curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  12. curl_setopt($ch, CURLOPT_URL,$url);
  13. $result=curl_exec($ch);
  14. $httpcode = curl_getinfo($ch,CURLINFO_HTTP_CODE);
  15.  
  16. var_dump($httpcode);
  17. var_dump($result);
  18. return;
  19.  
  20. int(200) string(32454) "
  21. This website does not support this version of Internet Explorer. Please upgrade to the latest version for a better experience. Upgrade Now
  22. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement