RE: [PHP] Finding out whether request was done via http or https
| From: | Mohit Mittal | Date: | Fri, 23 May 2003 21:54:03 +0000 |
| Subject: | RE: [PHP] Finding out whether request was done via http or https | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148747@lists.php.net to get a copy of this message | ||
if($_SERVER["SERVER_PORT"] == 80) {
// request is made through http
}
else{
//ELSE request is made through https
}
The default port for https is 443.
Mohit Mittal
Software Engineer
Patni Computer Systems (P) Ltd.
Noida,
Office Tel:
91 120 2516880 - 83
Ext: 1261
Residence Tel:
91 11 26890175
-----Original Message-----
From: Lauri Vain [mailto:lauri_lists@tharapita.com]
Sent: Friday, May 23, 2003 2:18 AM
To: php-general@lists.php.net
Subject: [PHP] Finding out whether request was done via http or https
Hello,
Is there a way to find out in the code whether the request was made via
http or https?
Thanks,
Lauri
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php