php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #60289 SSL Issue
Submitted: 2011-11-14 05:33 UTC Modified: 2011-11-14 11:09 UTC
From: arv_php at yahoo dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.3.8 OS: any
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: arv_php at yahoo dot com
New email:
PHP Version: OS:

 

 [2011-11-14 05:33 UTC] arv_php at yahoo dot com
Description:
------------
Its very surprising that we don't have any function or Super Global variable to tell us whether my current page URL is HTTP or HTTPS. 
For this we are still rely on server port to determine HTTP or HTTPS. but if both HTTP and HTTPS are running on same port (Let 80) then, No Idea how to determine that.
I just want to suggest that there must be a Super Global variable or function to fetch Complete current URL including HTTP/ HTTPS as java script provides.

I hope you all understand this concern and will provide some solution for that in next release.     

Test script:
---------------
Its very surprising that we don't have any function or Super Global variable to tell us whether my current page URL is HTTP or HTTPS. 
For this we are still rely on server port to determine HTTP or HTTPS. but if both HTTP and HTTPS are running on same port (Let 80) then, No Idea how to determine that.
I just want to suggest that there must be a Super Global variable or function to fetch Complete current URL including HTTP/ HTTPS as java script provides.

I hope you all understand this concern and will provide some solution for that in next release.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-14 11:09 UTC] johannes@php.net
PHP knows nothing about that. Many web servers will set $_SERVER['HTTPS'] to the value "on" when HTTPS is used, though.
 [2011-11-14 11:09 UTC] johannes@php.net
-Status: Open +Status: Bogus
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC