Re: Apache2::Cookie confusing path and domain

2005-06-30 Thread Philip M. Gollucci
Gokul P. Nair wrote: --- "Philip M. Gollucci" <[EMAIL PROTECTED]> wrote: Crap I missed the missing name. Didn't try expires. Its probably a bug. If you're interested in fixing it, you'll want to look at glue/perl/APR/Request/Cookie.xs I found the problem but I'm not sure where to implement th

RE: Eagle book RandPicture.pm, $r->internal_redirect, and IE 6.0 showing same image every time

2005-06-30 Thread David Christensen
Philip M. Gollucci wrote: > Just for kicks, can you try it in another browser like FireFox ? A logical suggestion, but: 1. IE with default security and privacy settings is my target browser. If IE has an issue with internal_redirect(), I need to deal with it at the mod_perl end. 2. I h

Re: Eagle book RandPicture.pm, $r->internal_redirect, and IE 6.0 showing same image every time

2005-06-30 Thread Philip M. Gollucci
David Christensen wrote: modperl: When I implement the $r->internal_redirect optimization per p. 129 (see source code, below), IE 6.0 displays the same image every time, even though RandPicture.pm seems to be selecting different images (see debugging information in error log, below). I have t

Eagle book RandPicture.pm, $r->internal_redirect, and IE 6.0 showing same image every time

2005-06-30 Thread David Christensen
modperl: I'm a mod_perl newbie working my way through the Eagle book (http://www.modperl.com/), and have implemented RandPicture.pm per pp. 126-127. Everything works as expected using $r->header_out(Location => $lucky_one) and REDIRECT, and also using the $subr->run optimization per p. 128. When

Re: Apache::DBI and mod_perl 2.0.1

2005-06-30 Thread Philip M. Gollucci
Philip M. Gollucci wrote: Vincent Moneymaker wrote: From Apache::DBI: > if ($Apache::ServerStarting and $Apache::ServerStarting == 1) { >print STDERR "$prefix skipping connection during server startup, read the docu !!\n" if $Apache::DBI::DEBUG > 1; >return $drh->connect(@arg

Re: Apache::DBI and mod_perl 2.0.1

2005-06-30 Thread Philip M. Gollucci
Vincent Moneymaker wrote: I have a question which I am not sure whether it is loopy or not. In the Apache::DBI module module the variable '$Apache::ServerStarting' is used but I can't find any reference to it on the mod_perl site or elsewhere under /usr/local/lib/perl5 on my FreeBSD box. The m

Re: Apache::DBI and mod_perl 2.0.1

2005-06-30 Thread Vincent Moneymaker
> Joshua Hoblitt wrote: > > >On Thu, Jun 30, 2005 at 11:25:26AM -0400, Philip M. Gollucci wrote: > > > > > >>Mark A. Downing wrote: > >> > >> > >> > >>>On Thu, 30 Jun 2005, Philip M. Gollucci wrote: > >>> > >>> > >>> > Thanks for this Mark. (Un)fortunately you've been beat to it and > ther

Re: Apache::DBI and mod_perl 2.0.1

2005-06-30 Thread Philip M. Gollucci
Joshua Hoblitt wrote: On Thu, Jun 30, 2005 at 11:25:26AM -0400, Philip M. Gollucci wrote: Mark A. Downing wrote: On Thu, 30 Jun 2005, Philip M. Gollucci wrote: Thanks for this Mark. (Un)fortunately you've been beat to it and there are "few" more changes to get all of it wor

Re: Apache2::Cookie confusing path and domain

2005-06-30 Thread Gokul P. Nair
ok, I'll try and look at the code. Thanks Gokul P. Nair --- "Philip M. Gollucci" <[EMAIL PROTECTED]> wrote: > Gokul P. Nair wrote: > > >It works and i'm able to set the cookie, but the > >"name" and "expires" tags are not set in the > cookie? > >Did it work for you? > > > > > Crap I missed t

Re: Apache2::Cookie confusing path and domain

2005-06-30 Thread Philip M. Gollucci
Gokul P. Nair wrote: It works and i'm able to set the cookie, but the "name" and "expires" tags are not set in the cookie? Did it work for you? Crap I missed the missing name. Didn't try expires. Its probably a bug. If you're interested in fixing it, you'll want to look at glue/perl/APR/R

Re: Apache2::Cookie confusing path and domain

2005-06-30 Thread Gokul P. Nair
It works and i'm able to set the cookie, but the "name" and "expires" tags are not set in the cookie? Did it work for you? Is this a bug? Thanks. --- "Philip M. Gollucci" <[EMAIL PROTECTED]> wrote: > > >I hope you mean $r->headers_out, if yes then i do > have > >that line too, although it fail

Re: r->get_basic_auth_pw(...)

2005-06-30 Thread Geoffrey Young
raja agireddy wrote: > Hello, > > I have implemented modperl2.0, Apache2.0 and AuthenSmb0.72. I have > modified AuthenSmb to include timeout conditions. > > Everthing works fine, with an exception. I guess your modifications are the culprit, then :) > When the user logs in first does any wron

Re: Apache2::Cookie confusing path and domain

2005-06-30 Thread Philip M. Gollucci
I hope you mean $r->headers_out, if yes then i do have that line too, although it fails miserably. This is what i've got so far: my $req = $r->pool(); my $cookie = APR::Request::Cookie->new($req, name => "foo", value => "bar"); $cookie->path('/'); $cookie->domain('192.168.1.

Re: delete a specific Set-Cookie header within a proxied response?

2005-06-30 Thread Geoffrey Young
Jeff Ambrosino wrote: > We have the need to delete a specific Set-Cookie header found in the > reponse within a reverse proxy [Apache2, libapreq2, mod_perl2, > mod_proxy with an HTTP output filter]. Looking at the docs for > APR::Table [1] it doesn't appear that this is possible. Although you >

Re: Apache2::Cookie confusing path and domain

2005-06-30 Thread Gokul P. Nair
As of now, to check to see if the cookie is set or not, i'm just doing something as simple as checking under 'Preferences' and 'View Cookies' in my browser's properties button. I've seen the cookies, that i set using Apache2::Cookie in the past, there. I don't see them now, reloading the page does

Re: Apache2::Cookie confusing path and domain

2005-06-30 Thread Kevin A. McGrail
You know that after you set a cookie you cannot check for it's existence in the same session. Set a cookie. Reload. Then check for cookie existence. How are you checking that the cookie exists? One good way is to simply output the $ENV. foreach my $key (keys %ENV) { print "$key -> $ENV{$k

Re: Apache2::Cookie confusing path and domain

2005-06-30 Thread Gokul P. Nair
>I'm hoping you missed this line: > my $cookie = APR::Request::Cookie->new($req, > name > => "foo", >value > => "bar", > domain > => "capricorn.com"); Yes,

Re: Apache2::Cookie confusing path and domain

2005-06-30 Thread Philip M. Gollucci
Kevin A. McGrail wrote: Hmmm, won't printing a response header directly when not in assbackwards mode and using $!++ cause also sorts of issues in Registry (or Perl Run)? KAM # print a response header printf "Set-Cookie: %s\n", $cookie->as_string; I'd have to look the the $r->send_header

Re: Apache2::Cookie confusing path and domain

2005-06-30 Thread Kevin A. McGrail
Hmmm, won't printing a response header directly when not in assbackwards mode and using $!++ cause also sorts of issues in Registry (or Perl Run)? KAM > # print a response header > printf "Set-Cookie: %s\n", $cookie->as_string; > > > I'd have to look the the $r->send_headers_xxx API my memory is

Re: Apache2::Cookie confusing path and domain

2005-06-30 Thread Philip M. Gollucci
>Philip M. Gollucci wrote: I'd have to look the the $r->send_headers_xxx API my memory is failing me at the moment. use Apache2::RequestRec (); use APR::Table (); use APR::Request::Cookie (); my $cookie = APR::Request::Cookie->new($req, x); $r->err_headers_out->add('Set-Cookie' =>

Re: Apache2::Cookie confusing path and domain

2005-06-30 Thread Philip M. Gollucci
Gokul P. Nair wrote: Thanks for the attachment. What i still don't understand though is that when i create the cookie using APR::Request::Cookie->new(...) how do i bake it or in other words, how do i send it? Am i even approaching this in the right direction? I'm hoping you missed this line

Re: Apache2::Cookie confusing path and domain

2005-06-30 Thread Gokul P. Nair
Thanks for the attachment. What i still don't understand though is that when i create the cookie using APR::Request::Cookie->new(...) how do i bake it or in other words, how do i send it? I guess i can use the cookie_class() to set the class to Apache2::Cookie and then bake it, but again use of Ap

Re: Apache2::Cookie confusing path and domain

2005-06-30 Thread Philip M. Gollucci
Gokul P. Nair wrote: I'm confused as to which is the best way to go about setting and retrieving cookies. Any advice would be greatly appreciated. perldoc APR::Request::Cookie Its supposed to be available http://httpd.apache.org/APR/Request/Cookie.html but the doc generated had issues whe

Re: Apache::DBI and mod_perl 2.0.1

2005-06-30 Thread Philip M. Gollucci
Mark A. Downing wrote: On Thu, 30 Jun 2005, Philip M. Gollucci wrote: Thanks for this Mark. (Un)fortunately you've been beat to it and there are "few" more changes to get all of it working with mp2. Very nice. Thanks. Can we get that pushed up to CPAN? Umm Talk to Ask B. H. He's be

Re: Apache::DBI and mod_perl 2.0.1

2005-06-30 Thread Mark A. Downing
On Thu, 30 Jun 2005, Philip M. Gollucci wrote: Thanks for this Mark. (Un)fortunately you've been beat to it and there are "few" more changes to get all of it working with mp2. Very nice. Thanks. Can we get that pushed up to CPAN?

Re: Apache::DBI and mod_perl 2.0.1

2005-06-30 Thread Philip M. Gollucci
Mark A. Downing wrote: Hi, I made a couple of changes to Apache::DBI to allow connect_on_init to work with mod_perl2. Here's the diff if anyone is interested: Thanks for this Mark. (Un)fortunately you've been beat to it and there are "few" more changes to get all of it working with mp2.

Apache::DBI and mod_perl 2.0.1

2005-06-30 Thread Mark A. Downing
Hi, I made a couple of changes to Apache::DBI to allow connect_on_init to work with mod_perl2. Here's the diff if anyone is interested: diff DBI.pm DBI.pm.old 11,12d10 < use constant MP2 => $mod_perl2::VERSION >= 1.99; < 37,44c35,37 < if (MP2) { server->push_han

Re: Apache2::Cookie confusing path and domain

2005-06-30 Thread Gokul P. Nair
Hello, I read in the libapreq2 mail archives that using APR::* is recommended over the Apache2::Cookie modules and that there was debate over dumping the Apache2::* modules but were left behind only for backward compatibilities. Please check this thread: http://marc.theaimsgroup.com/?l=apreq-dev&m

Re: [PATCH]Apache::IncludeHook

2005-06-30 Thread Geoffrey Young
Torsten Foertsch wrote: > On Wednesday 29 June 2005 20:33, Geoffrey Young wrote: > >>patch applied and will be part of the next release. since it's the only >>change I might wait a little bit before getting it to CPAN, but probably >>not more than a week. > > > BTW, I have learned that the fi