Perrin Harkins wrote: > > > I think the problem here is that mod_perl sets the assbackward flag > > when setting headers via send_cgi_header() (which CGI.pm does). > > Is this only an issue when using CGI.pm or PerlSendHeader then? I seem to > recall having no trouble doing this from a normal handler.
yeah, from what I can tell, CGI.pm is the only issue with HEADRegistry.pm. print "Location: foo" seems to work fine. I don't think PerlSendHeader is the problem - I tried it both ways IIRC. Apache::Registry doesn't handle HEAD requests at all, I don't think - HEADRegistry.pm respects $r->header_only and runs into this problem with redirects, Registry doesn't even try. for normal mod_perl handlers it shouldn't be an issue - it's up to the handler to check $r->header_only and take appropriate action, which is typically setting headers using $r->headers_out and returning an appropriate value. after a while, my mind started swimming in circles and I gave up :) --Geoff