Re: URL scheme in $r?
[prev]
[thread]
[next]
[Date index for 2005/06/03]
--nextPart9644692.SoIZZdjnoh
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
On Thursday 02 June 2005 21:51, Vsevolod (Simon) Ilyushchenko wrote:
> I'm probably missing something obvious, but how do I get the current URL
> scheme (HTTP or HTTPS) of a request? The full URI will work too.
> Everything that I see in the Apache2::RequestRec API only returns parts
> of the URI which don't tell me whether it's HTTP or HTTPS.
In the response phase you can check $r->subprocess_env('HTTPS'). For other=
=20
phases Apache2::ModSSL adds a is_https method to Apache2::Connection or use=
=20
Apache::SSLLookup. It is a subclass of Apache2::RequestRec and implements=20
is_https.
Torsten
--nextPart9644692.SoIZZdjnoh
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQBCoAdBwicyCTir8T4RAp36AKDLfiOzldumkb/46Y0cHpPwmGB5OwCfVe1W
6YUAATb+7pBfdT6r1K7Ts+k=
=rFjr
-----END PGP SIGNATURE-----
--nextPart9644692.SoIZZdjnoh--
 |
(message missing)
|