Re: Help with sending custom headers in mod_perl2

2007-05-04 Thread Jonathan Vanasco
On May 4, 2007, at 7:49 PM, Victor Danilchenko wrote: Someone (you know who you are, thanks!) helped me off-list by pointing out that I should use HTTP status 301 with Location header instead. In retrospect, it should have been obvious that the behavior I desired is meaningless in the con

Re: Help with sending custom headers in mod_perl2

2007-05-04 Thread Victor Danilchenko
Someone (you know who you are, thanks!) helped me off-list by pointing out that I should use HTTP status 301 with Location header instead. In retrospect, it should have been obvious that the behavior I desired is meaningless in the context of Refresh header. D'oh. Victor Danilchenko wrote: P

RE: Help with sending custom headers in mod_perl2

2007-05-04 Thread Kiran.Nadgir
Can someone tell me how to unsubscribe from this list..I haven't been able to unsubscribe. -Original Message- From: Victor Danilchenko [mailto:[EMAIL PROTECTED] Sent: Fri 5/4/2007 9:41 AM To: modperl@perl.apache.org Cc: Subject: Re: Help with sending custom he

Re: Help with sending custom headers in mod_perl2

2007-05-04 Thread Victor Danilchenko
Perrin Harkins wrote: On 5/2/07, Victor Danilchenko <[EMAIL PROTECTED]> wrote: I seem to be missing something very obvious... I have: $r->header_out("Refresh"=>"0; URL=$uri\n"); I think you're looking for this: $r->headers_out->add("Refresh"=>"0; URL=$uri\n"); Yup, that was

Re: Help with sending custom headers in mod_perl2

2007-05-03 Thread Perrin Harkins
On 5/2/07, Victor Danilchenko <[EMAIL PROTECTED]> wrote: I seem to be missing something very obvious... I have: $r->header_out("Refresh"=>"0; URL=$uri\n"); I think you're looking for this: $r->headers_out->add("Refresh"=>"0; URL=$uri\n"); You were trying to use mod_perl 1 syntax. Se

Re: Help with sending custom headers in mod_perl2

2007-05-02 Thread Victor Danilchenko
By the way, this submission of the HTTP header also seems to result in an about 20 second additional delay on the client side -- i.e. if I request an object which returns the Refresh header, I wait for about 20 seconds, then see the headers flash by as page contents, and then the refresh occur

Help with sending custom headers in mod_perl2

2007-05-02 Thread Victor Danilchenko
I seem to be missing something very obvious... I have: $r->header_out("Refresh"=>"0; URL=$uri\n"); $r->send_http_header; print "Test redirect => $uri\n"; But when the redirect page gets submitted, the HTTP headers show up as page contents: Keep-Alive: timeout=15, max=99 Connection: K