lua-users home
lua-l archive

Re: Question about LuaSocket : Always receive Http Error:Number 302

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


On 2010年5月27日 00:13:47 +0900
木村 圭佑 <k0227n0319@gmail.com> wrote:
> I write a http request program using luasocket.
> To connect server, and send header and body is success.
> But program always receive number:302.
> 
> I think My program don't support forward redirect system.
> 
> What should I write a program like?
You should write it so it handles the 302 redirects. Simply read the
new location field out of the response, and create a new request. Or
always use the URL the server is redirecting you to.
B.

AltStyle によって変換されたページ (->オリジナル) /