RE: Auth Handlers

2001-12-11 Thread J. Zobel

On Tue, 2001-12-11 at 21:00, Stathy Touloumis wrote:
 Actually, I DON'T want the browser to prompt for a username/pass.  I saw the
 examples in the eagle book and they all seem to use Authz, with Auth
 handlers using the example you showed.
 Perhaps I need to modify the headers so that the prompt does not occur?

I have the exact same problem. I want my AuthenHandler to decide if the
user is prompted for a password. Unfortunately the book tells me:

By the time the handler is called, Apache will have done most of the
work in negotiating the HTTP Basic authentication protocol. It will have
alerted the browser that authentication is required to access the page,
and the browser will have prompted the user to enter his name and
password. 

Has anybody got an idea how to let a handler decide, if autthen. is
required?

Thanx,
Joachim 

 
  # *This* is what you need if you want the
  # browser to prompt for a username/pass
  AuthType Basic
 require valid-user

 PerlAuthenHandler Base::Session::Handler
 /Directory






Re: Perl and Microsoft Excel?

2001-12-01 Thread J. Zobel

On Thu, 2001-11-29 at 23:37, Tom Servo wrote:
 There's probably a far better answer to this than I can give, but if not,
 an interim solution might be having whoever maintains these Excel files
 save them as .csv files.   Excel can do that, and while you lose all the
 fancy formatting, it just dumps them in a comma seperated list, then you
 can split on commas to get the values out of it.

Be careful, MScsv is not as simple as it seems. Fields containing , are
enclosed in  - thats OK. But those -enclosed fields saved from Excel
can also contain linebreaks. 

Hth,
Joachim
 




Re: AxKit Last-Modified header

2001-09-12 Thread J. Zobel

On Mon, 2001-09-10 at 16:19, Brian Wheeler wrote:

 The only difference between the two (request-wise) is that static pages
 return a Last-Modified header and dynamic data doesn't.  It seems to
 me that if I drop that header, everything will work :)
 
 I've tried doing:
 
 $r-header_out(Last-Modified='');
 and
 $r-header_out(Last-Modified=undef);
 
 but the header still comes out.
 
 Thoughts?  Am I on the right track?

Do not remove Last-Modified.
Add an Expires (Maybe even 1970).

If the page is expired, the browser will rerequest it with an
If-Modified-Since. So you can still play the 304 game.

Hth,
Joachim





How do I close a persistent connection?

2001-09-08 Thread J. Zobel


Hi.

We are experiencing infrequent troubles (page could not be displayed)
with IE 5 and redirects under SSL. As a workaround (hopefully) I want to
close the persistent HTTP/1.1 connection if such a redirect occurs. 

How do I do this. Sending a Connection:close header will tell the client
that I will close the connection, but how do I actually do this?

Thanx,
Joachim