cookies in subrequest

2004-11-16 Thread Marc Lambrichs
I want to pass cookies into a subrequest. I use Apache::Cookie to fetch all my available cookies. Next, I have to put them into a HTTP::Cookies cookiejar so I can use add_cookie_header() to add my cookies to a LWP::UserAgent. Is there no easier way? Cheers, Marc -- Report problems: http://perl.

redirecting log to screen

2004-11-30 Thread Marc Lambrichs
arrange this? -- Marc Lambrichs -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html

bad free() error

2004-12-04 Thread Marc Lambrichs
(eval 196): Bad free() ignored (PERL_CORE) at /var/www/general/lib/perl/Control.pm line 1 65. -- Marc Lambrichs -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html

installing libapreq and MP1

2005-05-09 Thread Marc Lambrichs
I'm trying to install a MP1 enabled apache in /usr/local/httpd_1.3.33 and MP2 enabled apache in /usr/local/httpd_2.054. Now, when I try to install libapreq I get the following error: mod_perl 1.x ( < 1.99) is required at Makefile.PL line 34. BEGIN failed--compilation aborted at Makefile.PL line

RC6 and Apache::DB

2005-05-09 Thread Marc Lambrichs
I suppose there should be some changes made to Apache::DB using the new naming schema in RC6? Could anyone enlighten me? Cheers, Marc

apreq_strerror

2005-05-23 Thread Marc Lambrichs
config: freebsd 5.3 httpd 2.054 modperl 2.0.0 When starting up apache I get: /libexec/ld-elf.so.1: /usr/local/lib/perl5/site_perl/5.8.5/mach/auto/APR/Request/Error/Error.so: Undefined symbol "apreq_strerror" what's wrong? Cheers, Marc

calling methods from other modules

2005-06-01 Thread Marc Lambrichs
I want to call mod_transform_set_XSLT (from mod_transform) in my PerlResponseHandler. Is this possible? Generally speaking, can I use methods from other apache modules in my handlers? -- Marc Lambrichs

writing to file with mp2

2005-07-26 Thread Marc Lambrichs
What's the best way to write to a file using mp2? IO::File is slow and Apache::File is lost... -- Marc Lambrichs --

redirect doesn't work in eval

2005-08-08 Thread Marc Lambrichs
When a request is sent to the webserver, it handles some stuff and then - sometimes - a redirect must take place. Now the weird part: when i use $r->headers_out->set( Location => 'http://www.mysite.com/' ); return Apache2::Const::REDIRECT inside an eval{} construction it doesn't work. Is there a

no cookie on redirect : mod_auth_tkt2

2005-08-14 Thread Marc Lambrichs
I'm trying to build a mp2 handler to login using mod_auth_tkt2. I like the idea of probing if the client can support cookies, so tried to rebuild it. According to the cgi example there is some problem with setting the cookie on a redirect. The same problem - no probe cookie is set during the re

Re: no cookie on redirect : mod_auth_tkt2

2005-08-15 Thread Marc Lambrichs
domain in it - Apache "cleverly" notices this and performs the second request without going back to the browser. To force return to the browser include the domain in the URL $r->headers_out->set( Location => "http://my.dn.org/login?redirect=1"; ); On Sun, 14 Aug 200

using subrequest to different server

2006-12-07 Thread Marc Lambrichs
I'm trying to change a subrequest to do a request to a different server than the originating one. I'm not sure if this is possible. Anyway, I've skipped the internal_redirect because - am I correct? - this is bound to the originating server. My second thought was using lookup_uri(), but I'm no

reset multiple cookies

2006-12-09 Thread Marc Lambrichs
foreach my $cookie ( @cookies ){ $log->debug( '[logout]: ' . $cookie->as_string ); $r->err_headers_out->add( 'Set-Cookie' => $cookie->as_string ); } return Apache2::Const::OK; Cheers, Marc Marc Lambrichs ===

Re: reset multiple cookies

2006-12-11 Thread Marc Lambrichs
Well, there's no problem there. Checking the head looks ok: my tests show three Set-Cookie statements: $ curl -I --cookie "auth_tkt=ZjY4MDk5NWYwOTRlODNmNGJiNDhlNmI0ZmY4M2ZkZjM0NTdjMDA3Y21sQG1lbGFuZ2UtaXQubmwhMTE2NTc1NDQ5Mjo4Mi45Mi45NS4yMDI=; domain=main.domain.com;" http://main.domain.com/logo

Re: reset multiple cookies

2006-12-14 Thread Marc Lambrichs
Yes, fully intentional. We want to wipe out all cookies of all domains that have been set during a session. Marc Robert Landrum wrote: Marc Lambrichs wrote: Date: Sun, 10 Dec 2006 12:50:09 GMT Server: Apache Set-Cookie: auth_tkt=; path=/; domain=main.domain.com; expires=Sun, 10-Dec-2006 11

refactoring client's decision

2008-05-10 Thread Marc Lambrichs
I've taken over some code for a client. They've built a framework that used to run under mod_perl and changed it later, because of problems they had - what problems remains unknown - to cgi. Ofcourse I'm curious why they changed it. Here's my view: they create a parent App::Handler and in every