Re: FW: Re: Apache::TestRequest + Cookies

2004-12-01 Thread Christopher H. Laco
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=rev&rev=109277 http://svn.apache.org/viewcvs?view=rev&rev=109279 Thanks. Glad to contribute. It looks like the only change was nam

Re: FW: Re: Apache::TestRequest + Cookies

2004-12-01 Thread Stas Bekman
Christopher H. Laco wrote: Thanks, Chris, committed with a few small adjustements. You can see the commits here: http://svn.apache.org/viewcvs?view=rev&rev=109277 http://svn.apache.org/viewcvs?view=rev&rev=109279 Thanks. Glad to contribute. It looks like the only change was naming the cookies.pl

Re: FW: Re: Apache::TestRequest + Cookies

2004-12-01 Thread Christopher H. Laco
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 pat

Re: FW: Re: Apache::TestRequest + Cookies

2004-12-01 Thread Stas Bekman
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 patches to MANIFEST an

Re: FW: Re: Apache::TestRequest + Cookies

2004-12-01 Thread Christopher H. Laco
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 A-T

Re: FW: Re: Apache::TestRequest + Cookies

2004-11-30 Thread Christopher H. Laco
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 use

Re: FW: Re: Apache::TestRequest + Cookies

2004-11-30 Thread Stas Bekman
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 use the http://perl.ap

Re: FW: Re: Apache::TestRequest + Cookies

2004-11-30 Thread Michael Peters
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 http://perl.apache.org/~geoff/Apache

Re: FW: Re: Apache::TestRequest + Cookies

2004-11-30 Thread Stas Bekman
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 http://perl.apache.org/~geoff/Apache-Test-skeleton-mp2.

Re: FW: Re: Apache::TestRequest + Cookies

2004-11-30 Thread Christopher H. Laco
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 w

Re: FW: Re: Apache::TestRequest + Cookies

2004-11-30 Thread Stas Bekman
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 it

Re: FW: Re: Apache::TestRequest + Cookies

2004-11-30 Thread Christopher H. Laco
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 cli

Re: FW: Re: Apache::TestRequest + Cookies

2004-11-30 Thread Stas Bekman
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 >>> th

Re: FW: Re: Apache::TestRequest + Cookies

2004-11-30 Thread Christopher H. Laco
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 better. At least then

Re: FW: Re: Apache::TestRequest + Cookies

2004-11-30 Thread Christopher H. Laco
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

Re: Apache::TestRequest + Cookies

2004-11-30 Thread Stas Bekman
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 sc

Re: Apache::TestRequest + Cookies

2004-11-30 Thread Christopher H. Laco
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 custom

Re: Apache::TestRequest + Cookies

2004-11-30 Thread Stas Bekman
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 and also &need_module(mod_usertrack.c) to determine if the usertrack mnodule is installed, or is th

Re: Apache::TestRequest + Cookies

2004-11-30 Thread Christopher H. Laco
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 and also &need_module(mod_usertrack.c) to determine if the usertrack mnodule is installed, or is there someplace deeper within t

Re: Apache::TestRequest + Cookies

2004-11-29 Thread Stas Bekman
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

Re: Apache::TestRequest + Cookies

2004-11-29 Thread Christopher H. Laco
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 solution of Apache::Test

Re: Apache::TestRequest + Cookies

2004-11-24 Thread Stas Bekman
Christopher H. Laco wrote: 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 g

Re: Apache::TestRequest + Cookies

2004-11-24 Thread Christopher H. Laco
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 documente

Re: Apache::TestRequest + Cookies

2004-11-24 Thread Stas Bekman
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 to

Re: Apache::TestRequest + Cookies

2004-11-24 Thread Christopher H. Laco
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 a

Re: Apache::TestRequest + Cookies

2004-11-24 Thread Stas Bekman
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 => heade

Re: Apache::TestRequest + Cookies

2004-11-24 Thread Christopher H. Laco
[snip] Or more to the point: my $r = GET 'url', Cookie => $apacheRequestResponse->headers("Set-Cookie");

Re: Apache::TestRequest + Cookies

2004-11-24 Thread Christopher H. Laco
; headervalue Since I only had 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 -

Re: Apache::TestRequest + Cookies

2004-11-24 Thread Michael Peters
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 fi

Re: Apache::TestRequest + Cookies

2004-11-24 Thread Stas Bekman
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 t

Apache::TestRequest + Cookies

2004-11-23 Thread Christopher H. Laco
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 tests simply consist of a se