Kristian Nilssen wrote:
> I have an imageviewer component which indirectly redirects to itself to 
> redraw the next image in a sequence. Simple data like 'current file 
> index' is shared through sessions. I don't think I'm calling redirect 
> properly because I get annoying '200 ok the document has moved here' 
> messages in firefox. The next_image.html component just increments the 
> current index and redirects to this main code again. Any ideas on why 
> the redirect gives me this message?

I had exactly the same problem. See here:

http://marc.theaimsgroup.com/?l=mason&m=115442833325309&w=2

Basically, it's doing everything that it needs to do to redirect, except
that it isn't setting the correct status.

In fact, $m->abort(xxx) doesn't set the status to xxx like it should,
and redirect() is just a wrapper around this.

I'm using mod_perl and found I had to implement my own redirect function
that calls

$r->status(xxx)

first.

The correct status for a redirect is 3xx, usually 301, 302 (the resource
requested is here) or 303 (the results of whatever you've just done are
here). If in doubt, just use 302.

If anyone has an explanation of why $m->abort(xxx) doesn't set the
status, I'd be interested to know.

-Oli

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to