Ok, here's my first crack at a quick n dirty cookies test.
The new test is t/cookies.t, and it's supporting server file is
t/htdocs/cgi-bin/cookies.pl. I figured the extra cgi-bin directory was
good for sanity sake.
I've also included the necessary patches to MANIFEST and extra.conf.in
against
Christopher H. Laco wrote:
Thanks, Chris, committed with a few small adjustements. You can see
the commits here:
http://svn.apache.org/viewcvs?view=revrev=109277
http://svn.apache.org/viewcvs?view=revrev=109279
Thanks. Glad to contribute. It looks like the only change was naming the
cookies.pl
Stas Bekman wrote:
Christopher H. Laco wrote:
Thanks, Chris, committed with a few small adjustements. You can see
the commits here:
http://svn.apache.org/viewcvs?view=revrev=109277
http://svn.apache.org/viewcvs?view=revrev=109279
Thanks. Glad to contribute. It looks like the only change was
Stas Bekman wrote:
Christopher H. Laco wrote:
Ok, here's my first crack at a quick n dirty cookies test.
The new test is t/cookies.t, and it's supporting server file is
t/htdocs/cgi-bin/cookies.pl. I figured the extra cgi-bin directory was
good for sanity sake.
I've also included the necessary
just a very simple test that verifies that the documented technique works.
later on it may evolve to include a special A-T API if we ever add one.
Is it enought to do IfModule mod_usertrack.c and also
need_module(mod_usertrack.c) to determine if the usertrack mnodule is
installed, or is there
Christopher H. Laco wrote:
just a very simple test that verifies that the documented technique
works. later on it may evolve to include a special A-T API if we ever
add one.
Is it enought to do IfModule mod_usertrack.c and also
need_module(mod_usertrack.c) to determine if the usertrack mnodule
but most people won't have this module installed...
Installed, or loaded? I know the httpd.conf defaults to having that module
commented out, but the module itself should be around.
Maybe relying on Apache::Session would cover more install scnerios instead.
I was trying to avoid writing a
Christopher H. Laco wrote:
but most people won't have this module installed...
Installed, or loaded? I know the httpd.conf defaults to having that
module commented out, but the module itself should be around.
Loaded or even available...
Maybe relying on Apache::Session would cover more install
CChristopher H. Laco wrote:
Maybe relying on Apache::Session would cover more install scnerios
instead. I was trying to avoid writing a custom handler just to
accept and toss some cookies in the test environment, but maybe
that's better. At least then everyone install should be able to run
Christopher H. Laco wrote:
Christopher H. Laco wrote:
CChristopher H. Laco wrote:
Maybe relying on Apache::Session would cover more install scnerios
instead. I was trying to avoid writing a custom handler just to
accept and toss some cookies in the test environment, but maybe
that's
Stas Bekman wrote:
[snip]
Why don't you first post what you had on your mind. May be your idea
doesn't need that at all.
Well, here's what I was thinking. First, write a quick and dirty
mod_perl handler that looked for a specific cookie; let's say 'ApacheTest'.
If it wasn't supplied by the
Christopher H. Laco wrote:
Stas Bekman wrote:
[snip]
Why don't you first post what you had on your mind. May be your idea
doesn't need that at all.
Well, here's what I was thinking. First, write a quick and dirty
mod_perl handler that looked for a specific cookie; let's say 'ApacheTest'.
If
Stas Bekman wrote:
Sounds good. Though it'll probably need to leave in the modperl2's test
suite and not Apache-Test's one. but let's see the code first and then
see where it's the best to apply it. You can use the
http://perl.apache.org/~geoff/Apache-Test-skeleton-mp2.tar.gz
to make it easy to
Christopher H. Laco wrote:
Stas Bekman wrote:
Sounds good. Though it'll probably need to leave in the modperl2's
test suite and not Apache-Test's one. but let's see the code first and
then see where it's the best to apply it. You can use the
Stas Bekman wrote:
Christopher H. Laco wrote:
Stas Bekman wrote:
Sounds good. Though it'll probably need to leave in the modperl2's
test suite and not Apache-Test's one. but let's see the code first
and then see where it's the best to apply it. You can use the
Stas Bekman wrote:
Michael Peters wrote:
Stas Bekman wrote:
Christopher H. Laco wrote:
Stas Bekman wrote:
Sounds good. Though it'll probably need to leave in the modperl2's
test suite and not Apache-Test's one. but let's see the code first
and then see where it's the best to apply it. You can
Christopher H. Laco wrote:
Now that I've gotten a few other module updates out of the way, I want
to get back to the thought of cookies within A-T. Two things were
mentioned that would help the A-T project in some way.
First, possibly add pod doc on how to use cookies within A-T using
Michaels
Christopher H. Laco wrote:
Has anyone used ApacheTestRequest to test pages using cookiessessions?
I'm writing some quick and dirty tests for an AxKit session module I've
adopted. I've got everything up and running config wise and the pages
are getting run through AxKit just fine.
The first two
Stas Bekman wrote:
Christopher H. Laco wrote:
Has anyone used ApacheTestRequest to test pages using cookiessessions?
I'm writing some quick and dirty tests for an AxKit session module
I've adopted. I've got everything up and running config wise and the
pages are getting run through AxKit just
on cookie, it works. All hell would break loose the minute
I had more I assume.
-=Chris
From: Michael Peters [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Apache::TestRequest + Cookies
Date: Wed, 24 Nov 2004 14:29:02 -0500
MIME-Version: 1.0
Received: from
[snip]
Or more to the point:
my $r = GET 'url', Cookie =
$apacheRequestResponse-headers(Set-Cookie);
Christopher H. Laco wrote:
Thanks. I'll give that a whirl tonight.
I finally got the hack approach working by calling
$apacheRequestResponse-headers(Set-Cookie) and passing that result
right back into the [scantily mentioned] second param of
Apache::TestRequest::GET 'url', headername =
if you could also contribute the cookie test that would be handy too.
I'm feeling a bit dense at the moment. To the list, or to the forthcoming
[self] test suite? I'm not sure I understand the request.
P.S. Sorry about my list replies full of headers. I need to unsubscribe from
Hotmail and use
Christopher H. Laco wrote:
if you could also contribute the cookie test that would be handy too.
I'm feeling a bit dense at the moment. To the list, or to the
forthcoming [self] test suite? I'm not sure I understand the request.
Either way if you find how to use A-T to handle cookies or fix it
Either way if you find how to use A-T to handle cookies or fix it to do so,
it's be handy to add a new A-T tests (in addition to existing ones in
Apache-Test/t/) so we don't break this feature in the future, which is
easily possible sans having a test.
Plus it'll be great to have this
25 matches
Mail list logo