Re: redirecting

2006-04-15 Thread Maxime Zakharov
Octavian Rasnita wrote: Is the following code correct? $r->headers_out->set(Location => '/ss'); I have seen that if the "http://"; and the host name is not given, Internet Explorer displays the page correctly, but I don't know if this will work with all the browsers. If you know more, please p

Re: redirecting

2005-10-02 Thread ___cliff rayman___
Michael Hall wrote: Try simply: $r->headers_out->set(Location => 'to-URI'); make sure 'to-URI' is absolute and not relative as per the RFC's. I have had some problems with relative URI's since Apache tends to want to optimize the call. Instead of sending the 302 headers to the browser,

Re: redirecting

2005-10-01 Thread Michael Hall
Try simply: $r->headers_out->set(Location => 'to-URI'); return Apache2::Const::REDIRECT; The status of 302 is set automatically and my browsers reflect the new address. apache sends: HTTP/1.1 302 Found Date: Sun, 02 Oct 2005 06:00:12 GMT Server: Apache Location: to-URI Content-Length: 290 Conten

Re: redirecting a post (or vice versa)

2005-08-11 Thread Perrin Harkins
On Thu, 2005-08-11 at 21:27 +0200, allan juul wrote: > so i imagined that people would hit some kind of url that maps to some > perl code that could handle the POST. > its basically the same as a redirect via the location header, where the > URL is appended the relevant querystring, except we nee

Re: redirecting log to screen

2004-11-30 Thread Stas Bekman
[Marc, please always reply to the list] Marc Lambrichs wrote: Sorry. mp1. OK, then subclass Apache::Log (actually it is the same under both generations) I've written a utility module that uses a $r->log object to log my request using my own debug, info, notice etc. methods. Instead of writing t

Re: redirecting log to screen

2004-11-30 Thread Stas Bekman
Marc Lambrichs wrote: I've written a utility module that uses a $r->log object to log my request using my own debug, info, notice etc. methods. Instead of writing to a log file, I want to redirect all log messages to the client for a specific module that uses this log utility. What's the best w