RE: [PHP] Getting https-page

2003-01-20 Thread John W. Holmes
> You can easily get an webpage with: > $fp = fopen("http://www.mydomain.com/";, "r"); > if ($fp) exit; > while(!feof($fp)) > { $line .= fgets($fp, 4096); > } > fclose($fp); > print $line; > > But this doesn't work with https (SSL). How can I get an https-page? Use PHP 4.3.0 with OpenSSL e

RE: [PHP] Getting https-page

2003-01-20 Thread Matthew Walker
Look into the CURL libraries. http://www.php.net/manual/en/ref.curl.php They essentially allow you to emulate the behavior of a browser. Where I work, we use them to make SSL connections to payment processing gateways. Matthew -Original Message- From: Martin Thoma [mailto:[EMAIL PROTECTE

Re: [PHP] Getting https-page

2003-01-20 Thread Kenneth Brill
I would just read up on the CURL functions and either use them or get CURL and use it externally. "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > --- Martin Thoma <[EMAIL PROTECTED]> wrote: > > How can I get an https-page? > > I have never test

Re: [PHP] Getting https-page

2003-01-20 Thread Chris Shiflett
--- Martin Thoma <[EMAIL PROTECTED]> wrote: > How can I get an https-page? I have never tested this myself, but I found this page in the manual: http://www.php.net/manual/en/function.fsockopen.php It has this to say: "As of PHP 4.3.0, if you have compiled in OpenSSL support, you may prefix the