[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Question about LuaSocket : Always receive Http Error:Number 302
- From: gary ng <garyng2000@...>
- Date: Wed, 26 May 2010 18:47:03 -0700 (PDT)
--- 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.