Re: Re: Problem using fread with https
| From: | Curt Zirzow | Date: | Fri, 27 Aug 2004 03:26:14 +0000 |
| Subject: | Re: Re: Problem using fread with https | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194882@lists.php.net to get a copy of this message | ||
* Thus wrote Manuel Lemos:
> Hello,
>
> On 08/26/2004 06:40 PM, Pablo Gosse wrote:
> >Hi folks. I'm getting the following error when attempting to use
> >PEAR::HTTP_Request to check the existence of a file.
> >
> >It's throwing an error from fread on an https stream:
> >
> >Warning: fread(): SSL: fatal protocol error in
> >/u0/local/lib/php/Net/Socket.php on line 263
> >
> >Line 263 is as follows:
> >
> >return fread($this->fp, $size);
> >
> >My PHP version is 4.3.4, and it's compiled with openssl, so I can't see
> >why this is throwing an error since according to the docs as long as
> >openssl is compiled https is supported.
>
> I suspect that you do not have OpenSSL support enabled in your
> configuration.
if that was the case the error would something like:
$fp = fopen('https://foo.bar/', 'r');
PHP Notice: fopen(): Unable to find the wrapper "https" - did
you forget to enable it when you configured PHP?
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!