Hi!
To test your apache2 + mod_perl installation, try this:
1) copy thos files to somewhere:
http://yhafri.club.fr/crux/mod_perl/Hello.pm
http://yhafri.club.fr/crux/mod_perl/startup.pl
2) follow this README:
http://yhafri.club.fr/crux/mod_perl/README
cheers
/ycrux
lalitanand dandge a écrit :
I
Hi!
To test your apache2 + mod_perl installation, try this:
1) copy thos files to somewhere:
http://yhafri.club.fr/crux/mod_perl/Hello.pm
http://yhafri.club.fr/crux/mod_perl/startup.pl
2) follow this README:
http://yhafri.club.fr/crux/mod_perl/README
cheers
/ycrux
Message d'origine
Da
Reinveting the wheel its in my nature to understand things :-)
Hope that all anwsers are in chapter 13 (good number).
Thanks Geoffrey for all this explanations.
cheers
Younes
Geoffrey Young a écrit :
in the future please keep responses on list :)
yperl wrote:
Geoffrey Young a écrit
Hi Folks!
As usual, I'm facing another problem.
I'm playing with APR::* module like you suggested me (Fred, ) in your first
email.
I successfully send a cookie using APR::Request::Cookie (like described in the
doc), but I did't know how to read that cookie from a PerlResponseHandler.
I've foun
n I
found after
2 days of investigations. If you've more elegant solution, I'll try it
imediatly.
Hope this strange behaviour appears only on my box 8-)
/cheers
Younes
Geoffrey Young a écrit :
yperl wrote:
Finally I come with a working solution.
sub getCookie {
my ( $r ) = @_
Finally I come with a working solution.
sub getCookie {
my ( $r ) = @_;
# check for both 'Cookie' and 'Set-Cookie' HTTP headers
return $r->headers_in->{'Cookie'} || $r->headers_in->{'Set-Cookie'};
}
Hope this help new comers like me.
T
in
Client-Date: Sat, 11 Mar 2006 10:00:02 GMT
Client-Peer: 192.168.1.3:80
Client-Response-Num: 1
Set-Cookie: ID=123456; path=/
X-Pad: avoid browser bug
Younes
Fred Moyer a écrit :
yperl wrote:
unfortunately no. I've already tried this.
Sometimes bad cookies leave no crumbs and are especia
unfortunately no. I've already tried this.
Frank Wiles a écrit :
On Sat, 11 Mar 2006 02:42:20 +0100
yperl <[EMAIL PROTECTED]> wrote:
I've tried everything I found (in mailing lists, suggestions, web doc)
to send cookie from a PerlAccessHandler, but without success.
Bef
Hi there!
I've tried everything I found (in mailing lists, suggestions, web doc)
to send cookie from a PerlAccessHandler, but without success.
Before giving up, I would like to have an answer from the mod_perl2
authors if it is possible.
Here is my http.conf dealing with that:
--
I'm generating the cookie with CGI::Cookie().
I think the problem is elsewhere
>From a PerlResponseHandler, the method I described works,
but I got the problem within a PerlAccessHandler.
Should I delegate the cookie generation to the PerlResponseHandler ?
Younes
---Message d'origine
>Dat
Hi Fred!
I'm generating the cookie with CGI::Cookie().
I think the problem is elsewhere.
>From a PerlResponseHandler, the method I described works,
but I got the problem within a PerlAccessHandler.
Should I delegate the cookie generation to the PerlResponseHandler?
Younes
Message d'origine--
Hi All!
Thanks for your suggestions.
Here is the solution:
# set the location
$r->headers_out->set( Location => $CONFIG->{ACCESS_DENIED} );
return Apache2::Const::REDIRECT;
Regards,
Younes
Message d'origine
>Copie à: modperl_users List
>De: Jonathan Vanasco <[EMAIL PROTECTED]>
>Sujet:
Hi All!
I would like to do a redirect from a PerlAccessHandler.
With mod_perl1 to below code works.
But how to achieve the same thing with mod_perl2?
sub handler {
my $r =shift;
# tell the client what's coming
$r->content_type('text/html');
# set the location
$r->header_out( Location => 'htt
Thanks for the advices Fred.
>> Hi All!
>>
>> I'm planing to port a web application for mod_perl1 ro mod_perl2.
>>
>> I've carefully read to porting pages related to that
>> (http://perl.apache.org/docs/2.0/user/porting/), but unfortunatelly, I
>> haven't
>> found solutions to my simple problem
Hi All!<[EMAIL PROTECTED]>I'm planing to port a web application for mod_perl1 ro mod_perl2.
I've carefully read to porting pages related to that
(http://perl.apache.org/docs/2.0/user/porting/), but unfortunatelly, I haven't
found solutions to my simple problems.
1. How can I read a cookie
15 matches
Mail list logo