Re: how to check for ssl.

2000-08-06 Thread Jean-Denis Girard
$r-server-port() returns 0 $r-parsed_uri-port() and $r-parsed_uri-fragment() return nothing !!! ___cliff rayman___ a écrit : try these and see what they return: $r-server-port(); $r-parsed_uri-port(); -- ___cliff [EMAIL PROTECTED]http://www.genwax.com/ Jean-Denis Girard wrote: For

Re: how to check for ssl.

2000-08-04 Thread David Mitchell
I've got a section of our site where I want to force the user to connect via ssl. Inside of mod_perl, is there a parameter I can grab to see whether the connection is ssl or not? Or a way to get the port number? If there isnt a special reason otherwise, why not just put a redirect in

Re: how to check for ssl.

2000-08-04 Thread scotta
There is more then one section that needs to be secure and its not quite as blank and white as folder /secure needs to be secure. for example. folder /ecom/checkout needs to be secure. folder /ecom/showcart doesn't Scott On 4 Aug 2000, at 10:16, David Mitchell wrote: VirtualHost _default_:80

[ot] Re: how to check for ssl.

2000-08-04 Thread blue
On Fri, 4 Aug 2000 [EMAIL PROTECTED] wrote: There is more then one section that needs to be secure and its not quite as blank and white as folder /secure needs to be secure. for example. folder /ecom/checkout needs to be secure. folder /ecom/showcart doesn't it is really starting to sound

Re: how to check for ssl.

2000-08-04 Thread Jean-Denis Girard
For some reason (probably my error), $r-get_server_port() always returns 80 although my mod_perl backend only listen to 8080 and 8443 (I use Listen directives). I'm using (sockaddr_in($r-connection-local_addr))[0] to get the port instead. Though it works, I must load one more module (Socket),

Re: how to check for ssl.

2000-08-04 Thread ___cliff rayman___
try these and see what they return: $r-server-port(); $r-parsed_uri-port(); -- ___cliff [EMAIL PROTECTED]http://www.genwax.com/ Jean-Denis Girard wrote: For some reason (probably my error), $r-get_server_port() always returns 80 although my mod_perl backend only listen to 8080 and 8443 (I

how to check for ssl.

2000-08-03 Thread scotta
I've got a section of our site where I want to force the user to connect via ssl. Inside of mod_perl, is there a parameter I can grab to see whether the connection is ssl or not? Or a way to get the port number? I went through the archives last night and couldn't find anything near this. Am

Re: how to check for ssl.

2000-08-03 Thread Vivek Khera
"s" == scotta [EMAIL PROTECTED] writes: s I've got a section of our site where I want to force the user to s connect via ssl. s Inside of mod_perl, is there a parameter I can grab to see whether s the connection is ssl or not? Or a way to get the port number? perldoc Apache then scan for

Re: how to check for ssl.

2000-08-03 Thread ___cliff rayman___
use Apache::URI (); $r-parsed_uri-scheme; returns http or https [EMAIL PROTECTED] wrote: I've got a section of our site where I want to force the user to connect via ssl. Inside of mod_perl, is there a parameter I can grab to see whether the connection is ssl or not? Or a way to get the

Re: how to check for ssl.

2000-08-03 Thread Stas Bekman
On Thu, 3 Aug 2000, ___cliff rayman___ wrote: use Apache::URI (); $r-parsed_uri-scheme; returns http or https Not really, you can spoof both: http://thingy.kcilink.com/modperlguide/config/Knowing_the_proxy_pass_ed_Connec.html [EMAIL PROTECTED] wrote: I've got a section of our site

Re: how to check for ssl.

2000-08-03 Thread Philip Mak
On Thu, 3 Aug 2000, Stas Bekman wrote: use Apache::URI (); $r-parsed_uri-scheme; returns http or https Not really, you can spoof both: Does the user have to spoof it deliberately in order for the wrong one to be detected? If spoofing requires the user to do it on purpose, then in

[Mason]Re: how to check for ssl.

2000-08-03 Thread Tim Bishop
On Thu, 3 Aug 2000, Stas Bekman wrote: On Thu, 3 Aug 2000, ___cliff rayman___ wrote: use Apache::URI (); $r-parsed_uri-scheme; returns http or https Not really, you can spoof both: http://thingy.kcilink.com/modperlguide/config/Knowing_the_proxy_pass_ed_Connec.html [EMAIL

Re: how to check for ssl.

2000-08-03 Thread scotta
Ok, so what is the PORT variable and how do i access it? Scott On 3 Aug 2000, at 22:08, Stas Bekman wrote: Not really, you can spoof both: http://thingy.kcilink.com/modperlguide/config/Knowing_the_proxy_pass_e d_Connec.html

Re: how to check for ssl.

2000-08-03 Thread ___cliff rayman___
$port=$r-get_server_port(); [EMAIL PROTECTED] wrote: Ok, so what is the PORT variable and how do i access it? Scott On 3 Aug 2000, at 22:08, Stas Bekman wrote: Not really, you can spoof both: http://thingy.kcilink.com/modperlguide/config/Knowing_the_proxy_pass_e d_Connec.html --

Re: how to check for ssl.

2000-08-03 Thread Stas Bekman
On Thu, 3 Aug 2000, Philip Mak wrote: On Thu, 3 Aug 2000, Stas Bekman wrote: use Apache::URI (); $r-parsed_uri-scheme; returns http or https Not really, you can spoof both: Does the user have to spoof it deliberately in order for the wrong one to be detected? If