Re: Question about LuaSocket : Always receive Http Error:Number 302
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Question about LuaSocket : Always receive Http Error:Number 302
- From: Rob Kendrick <rjek@...>
- Date: 2010年5月26日 16:20:00 +0100
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.