Getting outlook message using cURL php -


i want connect outlook.com using curl (php) , message inbox.

<?php         $url = "https://login.live.com/login.srf?wa=wsignin1.0&ct=1369129355&rver=6.1.6206.0&sa=1&ntprob=-1&wp=mbi_ssl_shared&wreply=https:%2f%2fmail.live.com%2f%3fowa%3d1%26owasuffix%3dowa%252f&id=64855&snsc=1&cbcxt=mail";          $post_fields ="email=xxxx@outlook.com&pass=xxxx";           $cookie_path = "\hotmail_login\cook";         $ch = curl_init();         curl_setopt($ch, curlopt_url, $url);          curl_setopt($ch, curlopt_post, 1);         curl_setopt($ch, curlopt_postfields, $post_fields);          curl_setopt($ch, curlopt_returntransfer, 1);          curl_setopt($ch, curlopt_followlocation, 1);          curl_setopt($ch, curlopt_cookiefile, $cookie_path);          curl_setopt($ch, curlopt_cookiejar, $cookie_path);          curl_setopt($ch, curlopt_ssl_verifyhost, 0);          curl_setopt($ch, curlopt_ssl_verifypeer, false);          $output = curl_exec ($ch);          echo $output;      ?> 

any suggestions? in advance

to connect mail sever should use pop3 or imap, there no point in using curl this.

http://php.net/manual/en/function.imap-open.php

here have examples of how connect imap using php , messages


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -