Any redirect going to send a 301, 302 and 303. If you want things to just
stop... cfabort will do it. Sounds like you don't want a redirect at all.
On Apr 7, 2011 5:48 PM, "Jon Hirschi" <[email protected]> wrote:
>
> Hey guys,
>
> I have question. is there a way to redirect an event without causing a 302
> redirect? what i want to do is when i get a keyword, i want to stop the
> processing of the event that i'm processing, but i can't have the 302
> redirect. just any ideas on how to get around that?
>
> this is what i'm currently doing:
>
> // code snippet below
> if ( arguments.event.getArg("body") eq "help" ) {
> redirectEvent("smshelp",arguments.event);
> return true;
> } else if ( listfindnocase('stop,end,cancel,stop
> all,quit,unsubscribe',arguments.event.getArg("body"))) {
> redirectEvent("smsStop",arguments.event);
> return true;
> }
>
> any other options available?
>
> thanks!
>
> --
> To post to this group, send email to
[email protected]
> For more options and to unsubscribe, visit this group at
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
>
> SVN: http://svn.mach-ii.com/machii/
> Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/
--
To post to this group, send email to [email protected]
For more options and to unsubscribe, visit this group at
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
SVN: http://svn.mach-ii.com/machii/
Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/