Re: Using CGI.pm in handlers 2
Joachim Zobel <[EMAIL PROTECTED]> said something to this effect on 08/19/2001: > > "(offline mode: enter name=value pairs on standard input)" > > I have understood that I get theses messages because it is a Fixup Handler > and the enviroment is not yet initialized. But I still don't know what to > do about them. I think this is one of the things taht was fixed in later versions of CGI.pm; 2.46 is pretty old, I think. Try upgrading CGI.pm and I think this error will go away. (darren) -- Anything can be music.
Re: Using CGI.pm in handlers
On Sat, 18 Aug 2001, Joachim Zobel wrote: > I have a handler that needs to use CGI.pm to set a cookie. It seems to work > correctly, but it fills my error log with "(offline mode: enter name=value > pairs on standard input)" messages. I am doing If you are only using CGI.pm to set a cookie, you should really be using Apache::Cookie instead. It is much smaller and faster. But if you still want to use CGI.pm, you can load CGI.pm with debugging turned off. This should stop it from entering 'offline' mode. use CGI qw/-no_debug/; Cees
Using CGI.pm in handlers 2
> "(offline mode: enter name=value pairs on standard input)" I have understood that I get theses messages because it is a Fixup Handler and the enviroment is not yet initialized. But I still don't know what to do about them. Thanx, Joachim -- "... ein Geschlecht erfinderischer Zwerge, die fuer alles gemietet werden koennen."- Bertolt Brecht - Leben des Galilei
Using CGI.pm in handlers
Hi. I have a handler that needs to use CGI.pm to set a cookie. It seems to work correctly, but it fills my error log with "(offline mode: enter name=value pairs on standard input)" messages. I am doing use Apache; require Apache::Constants; use CGI; ... package SetCookie; (with $CGI::VERSION='2.46'; mod_perl/1.21) so I wonder why CGI.pm does not know it is run under mod_perl. Any Hints appreciated. Thanx, Joachim -- "... ein Geschlecht erfinderischer Zwerge, die fuer alles gemietet werden koennen."- Bertolt Brecht - Leben des Galilei