lua-users home
lua-l archive

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


Hi Guys,
Has anyone used Luasocket doing HTTP posts to webservers
that do "100 Continue"? (e.g. IIS)
I think the the current protocol code may require some tuning.

I understand the sequence should be:

C: send request header(s)
S: read request
S: 100 continue
C: send post data
S: read post data
S: send response
C: read response

Luasocket code performs a sequence like:

C: send request header(s)
C: send post data
S: read request
S: read post data
S: send response
C: read response

On reading the RFC it seems that the client should expect to
to get a possible continue after writing the header and expect to
get any number of continues while read the response.

I used an IIS server (that I cant get to easily again) that
the only response that Luasocket ever read on posts
was the 100 continue.

Does anyone have any experience with this?

DB