|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-11-11 15:59 UTC] matthias at pc-intern dot com
Description:
------------
If you check an HTTP URL with get_headers() function which redirects to another HTTPS URL, NULL will returned. If the redirect-HTTPS-URL is checked directly, there is no error. extension=php_openssl.dll is enabled.
Reproduce code:
---------------
works: get_headers('http://foo.com');
works: get_headers('http://foo.com?redirect=http://foo2.com');
don't work: get_headers('http://foo.com?redirect=https://foo2.com');
Expected result:
----------------
array (HEADERS);
There should be no problem when a HTTP URL redirectes to an HTTPS URL
Actual result:
--------------
NULL
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 18 08:00:02 2025 UTC |
btw: works, too: get_headers('https://foo.com');