cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Curling a hotmail account

From: Reda Lotfi <redalotfi_at_passkart.com>
Date: Sat, 30 Jul 2016 22:02:56 +0000 (UTC)

Hey,

Curling hotmail.com using the following code returns a "username/password error" despite their correctness. Any debugging suggestion ?

        $try = curl_init();
        curl_setopt_array($try, array(CURLOPT_POST => true, CURLOPT_POSTFIELDS => "loginfmt=email&login=email&passwd=password", CURLOPT_URL => "https://login.live.com/ppsecure/post.srf?wa=wsignin1.0&ct=1469906822&rver=6.6.6556.0&wp=MBI_SSL&wreply=https:%2F%2Foutlook.live.com%2Fowa%2F&id=292841&CBCXT=out&bk=1469906824&uaid=f317ac0874ff45cc9dcdc18d55ba5d58&pid=0", CURLOPT_FOLLOWLOCATION => true, CURLOPT_UNRESTRICTED_AUTH => true));
        curl_exec($try);
        curl_close($try);

Regards,
Reda

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2016-07-31