lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


According to the RFC anyway, POST should not be automatically redirected without interactive user confirmation.

--- On Thu, 5/27/10, Romulo <romuloab@gmail.com> wrote:

> From: Romulo <romuloab@gmail.com>
> Subject: Re: Question about LuaSocket : Always receive Http Error:Number 302
> To: "Lua list" <lua@bazar2.conectiva.com.br>
> Date: Thursday, May 27, 2010, 11:15 AM
> What situation?
> 
> On 5/26/10, gary ng <garyng2000@yahoo.com>
> wrote:
> >
> >
> > --- On Thu, 5/27/10, Petite Abeille <petite.abeille@gmail.com>
> wrote:
> >
> >> From: Petite Abeille <petite.abeille@gmail.com>
> >> Subject: Re: Question about LuaSocket : Always
> receive Http Error:Number
> >> 302
> >> To: "Lua list" <lua@bazar2.conectiva.com.br>
> >> Date: Thursday, May 27, 2010, 2:11 AM
> >>
> >> On May 26, 2010, at 5:13 PM, 木村 圭佑 wrote:
> >>
> >> >        method = "POST",
> >>
> >> >        redirect = true
> >>
> >>           (not reqt.method or
> >> reqt.method == "GET" or reqt.method == "HEAD")
> >>
> >> Ah... you need to adjust shouldredirect to handle
> POST
> >> methods. File a bug report to Diego :)
> >
> > I think there is a rationale that POST is in general
> not advised to be
> > redirected. Though given the situation of REST, the
> line between GET and
> > POST is quite blurred.
> >
> >
> >
> >
> >
> 
> -- 
> Sent from my mobile device
>