Re: fsockopen and https

From: Date: Fri, 26 Oct 2001 18:37:47 +0000
Subject: Re: fsockopen and https
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-72482@lists.php.net to get a copy of this message
As far as i know PHP can't handle SSL yet.. at least that was the situation a few versions ago. =( ----- Original Message ----- From: "Brad Hubbard" <brad@congosystems.com> To: "John" <spyder@spydermania.com>; <php-general@lists.php.net> Sent: Friday, October 26, 2001 5:54 AM Subject: Re: [PHP] fsockopen and https > On Fri, 26 Oct 2001 17:18, John wrote: > > Hello All, > > > > I am new to this list and am sure most of you are tired of this subject > > appearing. Please forgive me as I am becoming tired of searching archives > > and the internet and I am hoping someone here can help me. > > > > I am using fsockopen to post data to a dll on a SSL server. I setup the > > socket data and successfully posted the data to port 80 but as soon as I > > switch to port 443 I received no errors or text. > > Does this help? I use this on web servers to test whether a transaction > server is available or not. Only works on *nix of course (sorry Bill :-) > > <?php > > $ph = popen( "/usr/bin/openssl s_client -connect secure.geicp.com:443 -quiet > 2>/dev/null <<EOM\nGET / HTTP/1.0\n\nEOM\n", "r" ); > $response = fgets( $ph, 1024 ); > > if( stristr( $response, "200 OK" ) ) > { > header( "Location: https://a.secure.server.com" ); > exit; > } > > ?> > > Cheers, > BAD > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#72482) next »