[erlang-questions] misultin forward req

Roberto Ostinelli roberto@REDACTED
Wed Nov 30 05:14:27 CET 2011


i think that what you're really looking for is a 302 redirect. this should
be what you want:
https://github.com/ostinelli/misultin/issues/51

r.

On Tue, Nov 29, 2011 at 9:50 AM, Wes James <comptekki@REDACTED> wrote:

> On Tue, Nov 29, 2011 at 10:31 AM, Wes James <comptekki@REDACTED> wrote:
> > Anyone know with misultin if there is a way to forward a request.
> > I.e., if I have some settings in a conf file for a a login page
> > {on/off}.  If it is on, it will show the login page - I can do that,
> > but if I have login page {off} and someone goes to /login I want it to
> > go to /, but if I just use handle('GET', [], Req, Port) in the true
> > part of the case the / page shows, but the url has /login of course
> > since that was the original request.
>
>
> I realize now I can just do:
>
> Req:ok([{"Content-Type", "text/html"}],["<meta HTTP-EQUIV='REFRESH'
> content='0; url=/'">])
>
> Thanks,
>
> -wes
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20111129/2d18424a/attachment.htm>


More information about the erlang-questions mailing list