Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

PHP problems connecting to SSL server

Options
  • 04-08-2007 2:43pm
    #1
    Closed Accounts Posts: 22,479 ✭✭✭✭


    I'm trying to login on the login.live.com SSL server for a MSN bot I'm working on in PHP. I can send a HTTP packet via port 80 and get a server response, but I don't get anything with port 443.

    [PHP]
    function https() {
    $server = "login.live.com";
    $port = "443";
    $https = fsockopen("$server", $port, $errno, $errstr, 10);
    $out = "GET /pp500/login2.srf HTTP/1.0\r\n";
    $out .= "Authorisation: Passport1.4 OggVerb=GET, OrgURL=" . $this->login . "\r\n";
    $out .= "User-Agent: MSMSGS\r\n";
    $out .= "Host: login.live.com\r\n";
    $out .= "Connection: Keep-Alive\r\n";
    $out .= "Pragma: no-cache\r\n";
    $out .= "Cache-Control: no-cache\r\n\r\n";
    fwrite($https, $out);

    while (!feof($https)) {
    echo fread($https, 1024);
    }
    }
    [/PHP]

    Output from SSH client when I run it on server.
    Connected to Dispatch Server
    VER 1 MSNP12 MSNP11 MSNP10 CVR0
    CVR 2 7.0.0816 7.0.0816 7.0.0777 http://msgr.dlservice.microsoft.com/download/3/8/c/38c6f26d-f21e-4377-9dd8-f6fce23337ba/Install_MSN_Messenger_DL.EXE http://messenger.msn.com/fr
    XFR 3 NS 207.46.107.40:1863 0 207.46.28.93:1863
    VER 4 MSNP12 MSNP11 MSNP10 CVR0
    CVR 5 7.0.0816 7.0.0816 7.0.0777 http://msgr.dlservice.microsoft.com/download/3/8/c/38c6f26d-f21e-4377-9dd8-f6fce23337ba/Install_MSN_Messenger_DL.EXE http://messenger.msn.com/fr
    USR 6 TWN S lc=1033,id=507,tw=40,ru=http%3A%2F%2Fmessenger%2Emsn%2Ecom,ct=1186234866,kpp=1,kv=9,ver=2.1.6000.1,rn=m7fgo5rG,tpf=4b4d2794212fdb7e66575e6a8129e95c
    
    no response after I send the packet. But when I use port 80 I do, but it tells me to use port 443.


Comments

  • Closed Accounts Posts: 22,479 ✭✭✭✭philologos


    problems solved with CURL. Thanks anyway.


Advertisement