PHP Classes

SSL Fatal Protocol Error

Recommend this page to a friend!

      PHP HTTP protocol client  >  All threads  >  SSL Fatal Protocol Error  >  (Un) Subscribe thread alerts  
Subject:SSL Fatal Protocol Error
Summary:!
Messages:3
Author:vMyth
Date:2008-03-19 10:28:59
Update:2008-03-21 13:03:45
 

  1. SSL Fatal Protocol Error   Reply   Report abuse  
Picture of vMyth vMyth - 2008-03-19 10:28:59
I'm trying to access HTTPS site ( and setting up some proxies together ). The script always works fine but sometime I don't know why it returns an error :

Warning: fgets() [function.fgets]: SSL: fatal protocol error in C:\xampp\htdocs\inc\http.php on line 183

According to the PHP manual :

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. To workaround this, you should lower your error_reporting level not to include warnings. PHP 4.3.7 and higher can detect buggy IIS server software when you open the stream using the https:// wrapper and will suppress the warning for you. If you are using fsockopen() to create an ssl:// socket, you are responsible for detecting and suppressing the warning yourself.

I'm using XAMPP under Windows with PHP 5.2.3. So do you have any comment about this ?

  2. Re: SSL Fatal Protocol Error   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-03-20 04:24:01 - In reply to message 1 from vMyth
This is odd. I never seen this. Can you enable debug and show the HTTP dialog when that error is returned?

  3. Re: SSL Fatal Protocol Error   Reply   Report abuse  
Picture of vMyth vMyth - 2008-03-21 13:03:45 - In reply to message 2 from Manuel Lemos
I'm really sorry but this situation is very rare and I always forget to save the debug. Next time if I get this again I will definitely contact you asap.