Re: Problem using fread with https

From: Date: Thu, 26 Aug 2004 23:38:09 +0000
Subject: Re: Problem using fread with https
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-194870@lists.php.net to get a copy of this message
* Thus wrote Pablo Gosse: > 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); http://php.net/wrappers.http <warning> When using SSL, Microsoft IIS will violate the protocol by closing the connection without sending a close_notify indicator. PHP will report this as "SSL: Fatal Protocol Error" when you reach the end of the data..... </warning> 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!

« previous php.general (#194870) next »