Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

PHP problems connecting to SSL server

  • 04-08-2007 02: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

Advertisement