Getting AuthCookie to return a wml page

2001-04-04 Thread Michael Smith

Dear All,

I'm trying to use AuthCookie to return a wml page for those lucky people on
wap browsers.  I've got it all working nicely for normal web browsers, but
am getting errors on wap (and the Nokia Wap Toolkit doesn't tell me very
much about why it's an error).  One thing that looks a bit suspicious is the
Content-type line which comes our as text/html - in fact to be precise it
comes out as:

Content-Type: text/html; charset=iso-8859-1

I've tried to override this with things like $r-content_type but to no
avail.  It seems that there's a line in http_protocol.c (line 2667) which is
setting this (this response is harcoded there).

Surely I ought to be able to override this ... in which case the obvious
question is, how?

Cheers

Mike




http://www.iii.co.uk 
Interactive Investor International is a leading UK Internet personal 
finance service that provides individuals with the capability to identify, 
compare, monitor and buy online a number of financial products and services.

Interactive Investor Trading Limited, a subsidiary of Interactive Investor 
International plc, is regulated by the SFA.



Re: mod_perl based Authentication ...

2001-03-29 Thread Michael Smith

The modperl book should help a lot.

Try this:

http://www.modperl.com/book/chapters/ch6.html

Mike



- Original Message - 
From: "Sumit Babu" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 28, 2001 5:10 PM
Subject: mod_perl based Authentication ...


 Hi,
 I am very new to mod_perl, and would like to know
 if there are any pointers that provide help/examples
 for authentication for web sites. Although I am
 familiar with the cgi scripting, I have not written
 any kind of authentication on my own. So, if somebody
 can give some good pointers to this it will be of
 great help to me. 
 
 Thanks for your time and help. I have joined this list
 of-late and I am sorry if this is answered earlier.
 
 Regards,
 
 Sumit/
 
 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail. 
 http://personal.mail.yahoo.com/?.refer=text
 




Re: [OT] Re: Rotating Apache logs

2001-02-22 Thread Michael Smith

You may be aware of this, but cronolog is another option:

http://www.ford-mason.co.uk/resources/cronolog/

Mike

- Original Message -
From: "Steve Reppucci" [EMAIL PROTECTED]
To: "Terry Newnham" [EMAIL PROTECTED]
Cc: "mod_perl list" [EMAIL PROTECTED]
Sent: Thursday, February 22, 2001 2:11 PM
Subject: [OT] Re: Rotating Apache logs



 This is definitely off topic for this list, however...

 I'm not exactly sure what you're asking here, but if what you're asking is
 "how do I rotate logfiles without doing a hard stop/start cycle?", then
 the answer is (from the command line...) rename the open logfiles, then
 send the server either a SIGHUP or a SIGUSR1, which will cause it to
 reopen its logfiles.

 SIGHUP does it "forcefully" (existing requests will aborted), while
 SIGUSR1 does it "gracefully", allowing each child server currently
 handling requests to complete the request before restarting it.

 If you use the 'apachectl' control script included in the apache
 distribution, these options correspond to 'apachectl restart' and
 'apachectl graceful', respectively (although, if I remember right, the
 'graceful' option wasn't added until around release 1.3.0).

 So, something like this is what you want to do:

   root# cd /usr/local/apache
   root# mv logs/access_log logs/access_log.21-feb-2001
   root# mv logs/error_log  logs/error_log.21-feb-2001
   root# ./apachectl graceful

 At this point, new logs will be opened in the logs directory, and you can
 safely do whatever (gzip, archive, analyze, etc...) you want with the
 rotated logs.

 HTH,
 Steve

 On Thu, 22 Feb 2001, Terry Newnham wrote:

  I've found out how to edit httpd.conf so that it will rotate the error
  and access logs. But you have to restart apache to read that which I'd
  rather not do. Is there a command-line use or the rotatelogs by means of
  which you can rotate the logs on the fly ?

 =-=-=-=-=-=-=-=-=-=-  My God!  What have I done?  -=-=-=-=-=-=-=-=-=-=
 Steve Reppucci   [EMAIL PROTECTED] |
 Logical Choice Software  http://logsoft.com/ |






Re: Please HELP, Thanks.

2000-05-29 Thread Michael Smith

You could try putting a

1;

at the end of the module, if you don't already have one.  Leaving this out
is a common mistake.

Mike

-Original Message-
From: Hui Zhu [EMAIL PROTECTED]
Cc: Modperl Mailing List [EMAIL PROTECTED]
Date: 29 May 2000 14:00
Subject: Please HELP, Thanks.


Hi ALL:

I have a module called samplemod.pm. It used to work fine. After modifying
something, i got errors from a perl
script (use samplemod;) saying:
samplemod.pm did not return a true value at /home/httpd/perl/test.pl line
12.
BEGIN failed--compilation aborted at  /home/httpd/perl/test.pl line 12.
Any hints, Thank you very much.

Steven.

Jim Winstead wrote:

 On May 25, Jeff Stuart wrote:
  That's a GOOD question.  Is there anyone at the moment using perl 5.6.0
in
  production?  Is it ready for production yet?

 We have one site in production with it, and a number of others
 going into production soon. We've been using is exclusively in our
 development environment for all new development since shortly after
 5.6.0 came out. It has been rock-solid for us. (The basic setup
 is Apache 1.3.12, mod_perl 1.24, perl 5.6.0, and FreeBSD 3.4.)

 Jim






JOB: perl work in London

1999-10-14 Thread Michael Smith

interactive investor is an internet-based financial services company.
We're looking to expand our technical team by the recruitment of one (or
more) developers.  Though we're looking for people with general
technical abilities, out development effort is currently focussed around
perl, mainly through the use of embperl and mod_perl.

If anyone on this list might be interested in joining us, please check
out the web site and drop me an email for more information.

Cheers

Mike