Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $loginUrl = 'https://secure.propertyshark.com/mason/Accounts/logon.html';
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $loginUrl);
- 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');
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, "email=myemail@hotmail.com&password=mypassword");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_COOKIESESSION, true);
- $answer = curl_exec($ch);
- if (curl_error($ch)) {
- echo curl_error($ch);
- }
- curl_setopt( $ch, 'http://www.propertyshark.com/mason/Property/619443/133-32-244-St-Queens-NY-11422/');
- echo $answer;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement