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" <[EMAIL PROTECTED]> To: "John" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]