Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2016
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. $loginUrl = 'https://secure.propertyshark.com/mason/Accounts/logon.html';
  2. $ch = curl_init();
  3. curl_setopt($ch, CURLOPT_URL, $loginUrl);
  4. curl_setopt($ch, CURLOPT_USERAGENT,'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/32.0.1700.107 Chrome/32.0.1700.107 Safari/537.36');
  5. curl_setopt($ch, CURLOPT_POST, true);
  6. curl_setopt($ch, CURLOPT_POSTFIELDS, "email=myemail@hotmail.com&password=mypassword");
  7. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  8. curl_setopt($ch, CURLOPT_COOKIESESSION, true);
  9. $answer = curl_exec($ch);
  10. if (curl_error($ch)) {
  11. echo curl_error($ch);
  12. }
  13. curl_setopt( $ch, 'http://www.propertyshark.com/mason/Property/619443/133-32-244-St-Queens-NY-11422/');
  14. echo $answer;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement