[PHP] php fopen https error
With RHEL/CentOS 5 php I get an SSL Error RHEL/CentOS 5 php is at 5.1.6 with security fixes backported. ?php $handle = fopen(https://maps.google.com;, r); $contents = stream_get_contents($handle); fclose($handle); ? will result in something like Warning: stream_get_contents(): SSL: fatal protocol error in bla.php on line 3 Some https pages do not raise this error, e.g. https://www.redhat.com is fine What is wrong? How to debug? How to resolve? How to mitigate? Thanks -- Markus Falb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php fopen https error
I believe this was a bug, is only a warning that may be suppressed and may have been fixed in 5.2.0. Are you aware that PHP is at 5.5.4 and that 5.1.6 is over 7 years old? -Shawn On Wed, Sep 25, 2013 at 9:09 AM, Markus Falb markus.f...@fasel.at wrote: With RHEL/CentOS 5 php I get an SSL Error RHEL/CentOS 5 php is at 5.1.6 with security fixes backported. ?php $handle = fopen(https://maps.google.com;, r); $contents = stream_get_contents($handle); fclose($handle); ? will result in something like Warning: stream_get_contents(): SSL: fatal protocol error in bla.php on line 3 Some https pages do not raise this error, e.g. https://www.redhat.com is fine What is wrong? How to debug? How to resolve? How to mitigate? Thanks -- Markus Falb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php fopen https error
Just as I thought: 5.2.0 Fixed bug #39039 SSL: fatal protocol error when fetching HTTPS from servers running Google web server). (Ilia) On Wed, Sep 25, 2013 at 10:03 AM, Shawn McKenzie shawn.mcken...@gmail.comwrote: I believe this was a bug, is only a warning that may be suppressed and may have been fixed in 5.2.0. Are you aware that PHP is at 5.5.4 and that 5.1.6 is over 7 years old? -Shawn On Wed, Sep 25, 2013 at 9:09 AM, Markus Falb markus.f...@fasel.at wrote: With RHEL/CentOS 5 php I get an SSL Error RHEL/CentOS 5 php is at 5.1.6 with security fixes backported. ?php $handle = fopen(https://maps.google.com;, r); $contents = stream_get_contents($handle); fclose($handle); ? will result in something like Warning: stream_get_contents(): SSL: fatal protocol error in bla.php on line 3 Some https pages do not raise this error, e.g. https://www.redhat.com is fine What is wrong? How to debug? How to resolve? How to mitigate? Thanks -- Markus Falb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php fopen https error
On 25.9.2013 17:12, Shawn McKenzie wrote: Just as I thought: 5.2.0 Fixed bug #39039 SSL: fatal protocol error when fetching HTTPS from servers running Google web server). (Ilia) Thanks, but ... I am not sure how what I am supposed to do with this information. #39039 says it is a bug and it was fixed. How do I proceed to understand this bug? Where can I find the appropiate patch? Where is this bug discussed? I am sorry if I strain it (too much?) but the link to this bug does not give a solution to the problem and it does not help to understand the problem. I understand that somewhere in cvs there is the solution, but I can not see an obvious way to get it from the information in #39039 -- Markus Falb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php fopen https error
On 25.9.2013 17:03, Shawn McKenzie wrote: I believe this was a bug, is only a warning that may be suppressed and may have been fixed in 5.2.0. Are you aware that PHP is at 5.5.4 and that 5.1.6 is over 7 years old? Please understand that some Distributions do the only backport security stuff thing, e.g. RedHat is supporting for 10 years nowadays. I do not complain, I just try to understand the issue. Thanks -- Markus Falb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php fopen https error
I thought I covered that. The bug was fixed 7 years ago. Upgrade PHP, I doubt there is a patch. I understand that not all coders or distributions will have the latest version of PHP, but come on, how many thousands of bugs have been fixed in 7 years? You're going to run into more. Alternatively you could try and suppress it. From the bug it sounded like it was only the warning that was the bug, so the code should work. I can't test because my PHP on CentOS is only 3 years old (5.3.3). $contents = @stream_get_contents($handle); On Wed, Sep 25, 2013 at 11:20 AM, Markus Falb markus.f...@fasel.at wrote: On 25.9.2013 17:12, Shawn McKenzie wrote: Just as I thought: 5.2.0 Fixed bug #39039 SSL: fatal protocol error when fetching HTTPS from servers running Google web server). (Ilia) Thanks, but ... I am not sure how what I am supposed to do with this information. #39039 says it is a bug and it was fixed. How do I proceed to understand this bug? Where can I find the appropiate patch? Where is this bug discussed? I am sorry if I strain it (too much?) but the link to this bug does not give a solution to the problem and it does not help to understand the problem. I understand that somewhere in cvs there is the solution, but I can not see an obvious way to get it from the information in #39039 -- Markus Falb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and HTTPS POSTs
Well, I remember I did a project for a company and in my development machine I didn't configured HTTPS but the production environtment use HTTPS... I never heard anything wrong about it and the application had some huge forms. By then I was using PHP 4.0.6 and then PHP 4.1.X. Try this: Send an HTTP POST request to the server and in the PHP code put this: print pre_REQUEST:\n; print_r($_REQUEST); print _POST:\n; print_r($_POST); print /pre; If you use a web form with the POST method both arrays should be the same. BTW, what version of web server and PHP are you using?? -William El mi? 31-03-2004 a las 23:14, Chris Streeter escribió: Has anyone had any problems with the $_POST super global not working in a HTTPS environment? My code works perfectly fine through a unsecured HTTP POST but when I do an HTTPS POST it only handles a few variable (I think 15 or 16). Any more than that and it looses all the $_POSTed variables. Has anyone seen this and more importantly know the fix for the problem? Thank you. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and HTTPS POSTs
Has anyone had any problems with the $_POST super global not working in a HTTPS environment? My code works perfectly fine through a unsecured HTTP POST but when I do an HTTPS POST it only handles a few variable (I think 15 or 16). Any more than that and it looses all the $_POSTed variables. Has anyone seen this and more importantly know the fix for the problem? May or may not be the same, but I certainly wasted a couple days this week tracking down similar problems. Turns out it was an IE bug when using Apache/mod_ssl. There's a fix listed on the mod_ssl site - I just added the following to an .htaccess file or the apache configuration file... SetEnvIf User-Agent .MSIE. nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0 -- Jack Baty Fusionary Media - http://fusionary.com/ Weblog - http://jackbaty.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP and HTTPS POSTs
Has anyone had any problems with the $_POST super global not working in a HTTPS environment? My code works perfectly fine through a unsecured HTTP POST but when I do an HTTPS POST it only handles a few variable (I think 15 or 16). Any more than that and it looses all the $_POSTed variables. Has anyone seen this and more importantly know the fix for the problem? Thank you. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php and https
Hi, I'm trying to connect to a https site to get a file. The target site replies to me: Unable to service this URL without parent cache. Is there someone who knows what that means? Thanks, Greg. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php and https
Is this related to PHP? Or are you getting the error from your browser? In that case, are you using IE? If so, it might be a bug with IE--I've seen it discussed in a few mailing lists. Otherwise, it might indicate that the web server you're connecting to is not configured properly. Marco -- php|architect - The magazine for PHP Professionals The monthly worldwide magazine dedicated to PHP programmers Come visit us at http://www.phparch.com! ---BeginMessage--- Hi, I'm trying to connect to a https site to get a file. The target site replies to me: Unable to service this URL without parent cache. Is there someone who knows what that means? Thanks, Greg. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ---End Message--- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php and https
i'm using PHP to connect to the server. i need to get a file, parse it, include the datas in mysql and then display an html page with a report... -Message d'origine- De : Marco Tabini [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 29 novembre 2002 16:58 À : DUPUIS Grégoire BE/DGC Cc : PHP-General Objet : Re: [PHP] php and https Is this related to PHP? Or are you getting the error from your browser? In that case, are you using IE? If so, it might be a bug with IE--I've seen it discussed in a few mailing lists. Otherwise, it might indicate that the web server you're connecting to is not configured properly. Marco -- php|architect - The magazine for PHP Professionals The monthly worldwide magazine dedicated to PHP programmers Come visit us at http://www.phparch.com! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP and https no working recieving cookies and header info how to fix needed.
I am using PHP 4.2.3 with Apache-SSL 1.3.26 and need some advice on how to get my scripts to receive the cookies that I am setting along with the POST and GET values from the preceding form. How do I go about this task? My thanks in advance for any help offered as I am totally stumped. Jeff Means [EMAIL PROTECTED]
[PHP] PHP and HTTPS
hi. wondering if anybody has any insight into this. i have written some PHP scripts that work every single time under http. under https (we have a valid security certificate) they work every single time on IE on mac and on NN on mac and pc. on IE on pc a this page cannot be displayed error (with possible reasons like your browser needs to be set to accept SSL2 and SSL3 [it is by the way]) is generated half of the time. the other half it works. again, it works every time under http. i have spent literally 10 hours trying to error trap. there is no pattern whatsover. the exact same data being posted will produce an error half of the time and will work the other half. i'm assuming then that this must be some server side config problem??? does anybody have any ideas as to the solution for this? it's killing me. thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and HTTPS
On Mon, 18 Feb 2002, wm wrote: i have written some PHP scripts that work every single time under http. under https (we have a valid security certificate) they work every single time on IE on mac and on NN on mac and pc. on IE on pc a this page cannot be displayed error (with possible reasons like your browser needs to be set to accept SSL2 and SSL3 [it is by the way]) is generated half of the time. the other half it works. Do you have any static HTML pages in your SSL-protected area? How do those work? If they have the same problem, you can eliminate PHP from the equation...if not, you can focus more directly on PHP. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php