Re: Redirect WTF

2010-01-27 Thread Adam Prime
David E. Wheeler wrote: On Jan 27, 2010, at 7:23 AM, Adam Prime wrote: This smells like a UseCanonicalName On + mod_dir redirect to me. If the directory /admin/profile/dest exists in the document root, there's a good chance it is. Ooh, thanks! I can see that I have mod_dir as a DSO, but I'

Re: Redirect WTF

2010-01-27 Thread David E. Wheeler
On Jan 27, 2010, at 7:23 AM, Adam Prime wrote: > This smells like a UseCanonicalName On + mod_dir redirect to me. If the > directory /admin/profile/dest exists in the document root, there's a good > chance it is. Ooh, thanks! I can see that I have mod_dir as a DSO, but I'm not loading it. The

Re: Redirect WTF

2010-01-27 Thread Adam Prime
David E. Wheeler wrote: Fellow mod_perlers, Note that the hosthame is "benedict.local". Now I often just use localhost when using Bricolage, and most of the time that works fine. But there is one JavaScript-triggered redirect button that looks like this: window.location.href = '/admin/p

Re: Redirect WTF

2010-01-26 Thread David E. Wheeler
On Jan 26, 2010, at 3:18 PM, Fred Moyer wrote: > I don't know if this could be an issue, but if I were to write this > config snippet, I would create a root block, and put the > transhandler outside that (with the other location based directives > inside). The transhandler isn't used in producti

Re: Redirect WTF

2010-01-26 Thread Fred Moyer
On Tue, Jan 26, 2010 at 2:58 PM, David E. Wheeler wrote: > Fellow mod_perlers, > > Here's a weird one for you. I'm testing Bricolage on mod_perl 2, getting it > ready for release, and noticed that some sort of redirect is happening when I > don't expect it. > > To whit, I have this configuration

Re: redirect

2007-10-17 Thread Perrin Harkins
On 10/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > We are getting some responses from a html page and > filtering the content accoding to our > requirement. Do you mean you're getting dynamic content from running a program, or that you're just reading an HTML page? Static HTML pages neve

Re: redirect

2007-10-16 Thread Mark Maunder
Hi, I may have missed some data earlier in this thread but, a few questions: It sounds like you're trying to use a mod_perl handler to read the location header from the client? Why are you doing this if your objective is to redirect the client to another page. Shouldn't you be sending the client

RE: redirect

2007-10-10 Thread Eli Shemer
DIRECT); $r->headers_out; # Print qq ( test ); # not a good idea -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Perrin Harkins Sent: Sunday, October 07, 2007 12:41 AM To: Eli Shemer Cc: Issac Goldstand; modperl@perl.apache.org Subject: Re:

Re: redirect

2007-10-06 Thread Perrin Harkins
On 10/6/07, Eli Shemer <[EMAIL PROTECTED]> wrote: > $r->headers_out->set("Refresh"=>"0;url=index.pl"); > > $r->headers_out; > return Apache2::Const::OK; > > this method seems to be the best solution for me since > 1. it works > 2. I rather send an OK signal since it's not an actual warning/error bu

RE: redirect

2007-10-06 Thread Eli Shemer
valid redirect as part of the system. Thanks a lot. -Original Message- From: Issac Goldstand [mailto:[EMAIL PROTECTED] Sent: Saturday, October 06, 2007 7:02 PM To: Eli Shemer Cc: modperl@perl.apache.org Subject: Re: redirect Sounds like you're doing something not-quite-right..

Re: redirect

2007-10-06 Thread Issac Goldstand
ut instead of actually automatically > referring me, it displayed an error with a link that "the paged has moved" > or something of that sort. > > > -Original Message- > From: Issac Goldstand [mailto:[EMAIL PROTECTED] > Sent: Saturday, October 06, 2007 6:1

RE: redirect

2007-10-06 Thread Eli Shemer
6:15 PM To: Eli Shemer Cc: modperl@perl.apache.org Subject: Re: redirect Send a Location: header back instead of a full response and return HTTP_MOVED_TEMPORARILY from your handler. If you want/need to return a response from the page, you can alternatively use an HTML META tag in the header to acco

Re: redirect

2007-10-06 Thread Issac Goldstand
Send a Location: header back instead of a full response and return HTTP_MOVED_TEMPORARILY from your handler. If you want/need to return a response from the page, you can alternatively use an HTML META tag in the header to accomplish the same effect. Issac Eli Shemer wrote: > Hey there, > > I

Re: redirect doesn't work in eval

2005-08-08 Thread Philip M. Gollucci
Marc Lambrichs wrote: When a request is sent to the webserver, it handles some stuff and then - sometimes - a redirect must take place. Now the weird part: when i use $r->headers_out->set( Location => 'http://www.mysite.com/' ); return Apache2::Const::REDIRECT inside an eval{} construction it d