httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Kobes <ra...@theoryx5.uwinnipeg.ca>
Subject [apreq-2] redirect on Win32
Date Sat, 11 Oct 2003 01:49:11 GMT
Hi,
  There seems to be a problem with the apreq_redirect_test
on Win32 with apreq-2. First off, env/t/request.t gives
the results in the attached t1.txt, with the error log
being e1.txt. The problem here is that no location is
extracted (in e1.txt, there's debug messages from
mod_apreq_redirect_test.c saying "looking for new location",
but no corresponding "redirecting to / ..." twin. If I
apply the following to env/t/request.t:
==========================================================
Index: t/request.t
===================================================================
RCS file: /home/cvs/httpd-apreq-2/env/t/request.t,v
retrieving revision 1.6
diff -u -r1.6 request.t
--- t/request.t	1 Oct 2003 20:00:36 -0000	1.6
+++ t/request.t	11 Oct 2003 01:26:57 -0000
@@ -19,7 +19,7 @@

 ok t_cmp(403, GET_RC("/apreq_access_test"), "access denied");

-my $filler = "0123456789" x 6400; # < 64K
+my $filler = "0123456789"; # < 64K
 my $body = POST_BODY("/apreq_access_test?foo=1;",
                      content => "bar=2&quux=$filler;test=6&more=$filler");
 ok t_cmp(<<EOT, $body, "prefetch credentials");
@@ -36,10 +36,10 @@

 foreach my $location ('/apreq_request_test', '/apreq_access_test') {
     ok t_cmp("ARGS:\n\ttest => redirect\n",
-            GET_BODY("/apreq_redirect_test?test=ok&location=$location%3Ftest=redirect"),
+            GET_BODY("/apreq_redirect_test?test=ok&location=$location&test=redirect"),
             "redirect GET");

-    $body = POST_BODY("/apreq_redirect_test?location=$location%3Ffoo=bar", content =>
+    $body = POST_BODY("/apreq_redirect_test?location=$location&foo=bar", content =>
             "quux=$filler;test=redirect+with+prefetch;more=$filler");

     ok t_cmp(<<EOT, $body, "redirect with prefetch");
============================================================================
(I changed the size of $filler for ease of debugging), then
the results of env/t/request.t occur in t2.txt, with the
error log being e2.txt. In this case the redirect does
happen, but it's just to, eg, /apreq_access_test, without
the rest of the args needed for the tests.

This is with Apache/2.0.47. Does the above suggest anything
to try? Thanks.

-- 
best regards,
randy
Mime
View raw message