lua-users home
lua-l archive

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


I have already asked this same problem in the lua irc channel, with no success.

Well the problem is, when I use a transfer-encoding in my http.request my http.request takes much much longer then normally. I have tried couple of things with the same effect. I really don't know how to fix this.

This is my source code I am using at the moment:


local socket = require("socket")
local http = require("socket.http")
local ltn12 = require("ltn12")

data = "">
r, c, h = http.request {
  headers = {
     ["Content-Type"] = "text/plain",
     ["Transfer-Encoding"] = 'chunked',

 method = "PUT",
 url = "" href="">",
 source = ltn12.source.string(data)