stas 2003/11/07 14:30:33
Modified: perl-framework/Apache-Test/lib/Apache TestRequest.pm Log: update the follow redirect behavior with POSTs doc Submitted by: David Wheeler <[EMAIL PROTECTED]> Revision Changes Path 1.92 +4 -5 httpd-test/perl-framework/Apache-Test/lib/Apache/TestRequest.pm Index: TestRequest.pm =================================================================== RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestRequest.pm,v retrieving revision 1.91 retrieving revision 1.92 diff -u -u -r1.91 -r1.92 --- TestRequest.pm 27 Oct 2003 22:45:13 -0000 1.91 +++ TestRequest.pm 7 Nov 2003 22:30:33 -0000 1.92 @@ -709,11 +709,10 @@ loading and enabling the new experimental HTTP/1.1 protocol module). And finally, the semantics of the C<requests_redirectable> parameter -is different than for C<LWP::UserAgent>. C<Apache::TestRequest> never -follows redirects for POST requests. However, it either follows -redirects for all other kinds of requests, or it doesn't. Thus +is different than for C<LWP::UserAgent>: It either follows +redirects for a request, or it doesn't. Thus C<requests_redirectable> is a boolean value instead of the array -reference that C<LWP::UserAgent> expects. Thus, to force +reference that C<LWP::UserAgent> expects. To force C<Apache::TestRequest> not to follow redirects in any of its convenience functions, pass a false value to C<requests_redirectable>: @@ -733,7 +732,7 @@ =item redirect_ok -By default they will follow redirects retrieved from the server. To +By default a request will follow redirects retrieved from the server. To prevent this behavior, pass a false value to a C<redirect_ok> parameter:
