这个是我的代码
local res, err = httpc:request_uri(url, {
method = "POST",
--args = str,
body = "application/octet-stream=hahah",
headers = {
["Accept"] = "text/plain, */",
["Content-Type"] = "Content-Dispositionform-data; boundary=---------------------------7d33a816d302b6",
["name"] = "file",
["filename"] = "helloWorld.lua",
["Content-Disposition"] = "form-data",
["Accept-Language"] = " zh-cn",
["Content-Length"] = "424",
--["Connection"] = "Keep-Alive -----------------------------7d33a816d302b6 ",
--["connectionTimeout"] = "60000",
--["keepAliveTimeout"] = "60000",
["User-Agent"] = "Mozilla/4.0 (compatible; OpenOffice.org)",
} ,
})