lua-users home
lua-l archive

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


On Thu, 27 May 2010 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.