RE: finding protocal script is called with

2003-01-22 Thread Toby Stuart
> -Original Message- > From: Dan [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 23, 2003 2:14 PM > To: Toby Stuart > Cc: '[EMAIL PROTECTED]' > Subject: Re: finding protocal script is called with > > > Below works like a charm, thanks for the i

Re: finding protocal script is called with

2003-01-22 Thread Dan
= new URI(self_url())->scheme; print header; print "-$http_prot- \n"; Toby Stuart wrote: -Original Message- From: Dan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 1:19 PM To: [EMAIL PROTECTED] Subject: finding protocal script is called with

Re: finding protocal script is called with

2003-01-22 Thread Dan
simran wrote: Assuing you are using apache and only ever run ssl over port 443 (which is the standard) you could use the SERVER_PORT environment variable... aka: $secure = $ENV{'SERVER_PORT'} eq '443' ? 1 : 0; I may not have control over that, but that's agood idea if I did if ($secure

Re: finding protocal script is called with

2003-01-22 Thread simran
Assuing you are using apache and only ever run ssl over port 443 (which is the standard) you could use the SERVER_PORT environment variable... aka: $secure = $ENV{'SERVER_PORT'} eq '443' ? 1 : 0; if ($secure) { # do secure stuff... } else { ... } On Thu, 2003-01-23 at 13:19

RE: finding protocal script is called with

2003-01-22 Thread Toby Stuart
> -Original Message- > From: Dan [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 23, 2003 1:19 PM > To: [EMAIL PROTECTED] > Subject: finding protocal script is called with > > > Hello, here's one for you all. > > What is the fastest way to find

finding protocal script is called with

2003-01-22 Thread Dan
Hello, here's one for you all. What is the fastest way to find out what protocal a script is being called from ? IE http, https, ftp ,etc currently I have to use : sub set_prot { use CGI self_url; $self_url_query = CGI::new(); $self_url = $self_url_query->self_url(); if($self_url