RE: porting from mod_perl1 to mod_perl2

2003-09-09 Thread Randy Kobes
On Tue, 9 Sep 2003, Bart Terryn wrote: > Stas, > > Sorry to insist. > But here I am again... > > Stas wrote: > >Actually I haven't looked, I have tested with your code. > Thanks a lot for going through the effort... > > >Before setting the header I wasn't getting the unicode > >chars you put in th

Re: CPAN module Apache::Emulator

2003-09-09 Thread Adam Kennedy
Done Stas Bekman wrote: care to post this back to the list? thanks. Adam Kennedy wrote: Interesting idea, and I'm fine with it, although I dislike ApacheEmu. Despite being longer, surely it would fit somewhere like Emulate::Apache::XX. Adam Stas Bekman wrote: Adam Kennedy wrote: For t

Re: Sending a different protocol header

2003-09-09 Thread hans
On Mon, Sep 08, 2003 at 08:51:13AM -0400, Geoffrey Young wrote: > try setting $r->assbackwards(1) before returning your response. this > should supress the apache headers and allow only your own to get through, > provided you print them instead of putting them in the headers_out table. > > btw,

Re: Sending a different protocol header

2003-09-09 Thread Chris Shiflett
--- Geoffrey Young <[EMAIL PROTECTED]> wrote: > btw, can you please explain what ICY is for me? I believe ICY is a protocol used for streaming media, so these headers are probably an extension of HTTP that can be used instead of the pure ICY protocol. That's a guess, anyway. :-) Chris = Beco

Mod Perl 1 Install Apache 1

2003-09-09 Thread Paul Kraus
I am trying to make mod perl one and keep getting the following error. Paul perl Makefile.PL APACHE_SRC=../apache_1.3.28/src APACHE_PREFIX=/srv/www DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 Make r.o): In function `Perl_reentrant_retry': reentr.o(.text+0x67b): undefined reference to `gethostent_r'

RE: porting from mod_perl1 to mod_perl2

2003-09-09 Thread Bart Terryn
Stas, Sorry to insist. But here I am again... Stas wrote: >Actually I haven't looked, I have tested with your code. Thanks a lot for going through the effort... >Before setting the >header I wasn't getting the unicode chars you put in the form back in the >dump. After setting the header it did p

Re: problem with RPM instalation of Apache and Mod_perl on RedHat and Mason

2003-09-09 Thread Stas Bekman
parvez mohamed wrote: I have RedHat 9, I have installed Apache using rpm wich comes with RedHat9 (httpd-2.0.40-21) then i haveinstalled mod_perl using rpm mod_perl-1.99_07-5 I don't know what version HTML::Mason is relying on (I'll let the mason developers to comment on it), but you probably want

Re: porting from mod_perl1 to mod_perl2

2003-09-09 Thread Stas Bekman
Bart Terryn wrote: Stas and all of the others, Stas said: I think I got your problem solved, you need to: - print $q->header(); + print $q->header("text/html; charset=utf-8"); Well actually you did not. Probably you looked a bit too fast. (forgivable in view of the numbers of mails you reply

Re: CPAN module Apache::Emulator

2003-09-09 Thread Stas Bekman
Adam Kennedy wrote: Interesting idea, and I'm fine with it, although I dislike ApacheEmu. Despite being longer, surely it would fit somewhere like Emulate::Apache::XX. That's fine too. I just thought of a namespace starting with ApacheXXX:: so it'll be placed next to Apache:: in the global

RE: porting from mod_perl1 to mod_perl2

2003-09-09 Thread Bart Terryn
Stas and all of the others, Stas said: >I think I got your problem solved, you need to: >- print $q->header(); >+ print $q->header("text/html; charset=utf-8"); Well actually you did not. Probably you looked a bit too fast. (forgivable in view of the numbers of mails you reply to:-) The utf8-tes

Re: Help: Can't coerce GLOB to string...

2003-09-09 Thread Stas Bekman
[Forwarded from "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>] Hello, In response to : Kurt George Gjerde wrote: > BTW: I've fixed my "can't coerce GLOB to string" problem I had last week. > Was unrelated to mod_perl (sorry). It seems XML::LibXSLT produced some > errors which went straight to STDERR.

Re: Portability Question

2003-09-09 Thread Randy Kobes
On Mon, 8 Sep 2003, Philip M. Gollucci wrote: > Say I want the same code to work under: > Win2k/ISS5.0&CGI > Win2k/IIS5.0&PerlEX > Win2k/Apache1&mod_perl1 > Win2k/Apache2&mod_perl2 > >FreeBSD/Linux/Sun/Apache1&mod_perl1 >FreeBSD/Linux/Sun/Apache2&mod_perl2 >FreeBSD/Linux/Sun/Ap

problem with RPM instalation of Apache and Mod_perl on RedHat and Mason

2003-09-09 Thread parvez mohamed
I have RedHat 9, I have installed Apache using rpmwich comes with RedHat9 (httpd-2.0.40-21) then ihaveinstalled mod_perl using rpm mod_perl-1.99_07-5then is have installed the latest Mason filesHTML-Mason-1.22) but when i try to start Apache it saysApache/Constants.pm not found. I serched CAPAN for

Re: Help wanted with locations / configuration

2003-09-09 Thread Marc Slagle
On Tue, 2003-09-09 at 05:00, Steve Hay wrote: > As in a PerlTransHandler, yes? Yup. > Is there a performance penalty with this? You're using Perl code to > inspect the URI, and then handing control back to the Apache core if it > is a static file. I wanted to avoid requests for static files w

Re: Help wanted with locations / configuration

2003-09-09 Thread petersm
Steve Hay <[EMAIL PROTECTED]> wrote > > Thanks for the idea, though. If I manage to overcome my > inexplicable aversion to file extensions then it certainly looks > like the simplest solution. I understand the argument that it's better for the user to not know the extension of the file they a

Re: Portability Question

2003-09-09 Thread Perrin Harkins
On Mon, 2003-09-08 at 23:29, Philip M. Gollucci wrote: > I haven't really had a hard time with this except: > CGI.pm ($query = CGI->new()) What about it? Is it not working? > Spreadsheet::WriteExcel (0.26 or less for Win2k/ISS5.0&PerlEx current is > .40 most likely not thread safe) > GD.pm (Ac

Re: Help wanted with locations / configuration

2003-09-09 Thread Thomas Klausner
Hi! On Tue, Sep 09, 2003 at 10:05:43AM +0100, Steve Hay wrote: > > > > SetHandler default > > > > > > SetHandler default > > > > > >This is working as expected, i.e. request for /css/foo.css or /img/bar.png > >are not handled by Apache::Dispatch > > > > > What about requests for /css or /img ?

Re: Help wanted with locations / configuration

2003-09-09 Thread Xavier Noria
On Tuesday 09 September 2003 11:16, Steve Hay wrote: > Those were actually my very frist ideas, but I decided that I prefer > to have all the URL's to begin with /myproject. I don't necessarily > require that URL to be related to the filesystem structure, but I > just want all the URL's (dynamic

Re: Help wanted with locations / configuration

2003-09-09 Thread Steve Hay
petersm wrote: Steve Hay <[EMAIL PROTECTED]> wrote SetHandler perl-script PerlHandler MyProject->dispatcher SetHandler default-handler Correct me if I'm wrong, but can't you just say> AddHandler perl-script .cgi PerlHandler MyProject->dispatcher using AddHandler in

Re: Help wanted with locations / configuration

2003-09-09 Thread Steve Hay
Perrin Harkins wrote: On Mon, 2003-09-08 at 11:51, Steve Hay wrote: Thus, I want to have something like this: /myproject [mp1] /myproject/component1 [mp1] /myproject/component2 [mp1] ... /myproject/images [static] /myproject/javascript [static] /myproject/stylesheet

Re: Help wanted with locations / configuration

2003-09-09 Thread Steve Hay
Marc Slagle wrote: On Mon, 2003-09-08 at 11:51, Steve Hay wrote: It also needs to have access to various static resources (images, stylesheets, JavaScript libraries etc.). Thus, I want to have something like this: /myproject [mp1] /myproject/component1 [mp1] /myproject/comp

Re: Help wanted with locations / configuration

2003-09-09 Thread Steve Hay
Thomas Klausner wrote: Hi! On Mon, Sep 08, 2003 at 04:51:55PM +0100, Steve Hay wrote: The project is going to be written as a series of mod_perl handlers - one for the main "home page", and others for various sub-components. Each handler is implemented by a separate module (all sub-classes