|
|
@ -210,6 +210,7 @@ function NGCPPush:request(postdata)
|
|
|
|
self.c:setopt(curl.OPT_SSL_VERIFYPEER, 0)
|
|
|
|
self.c:setopt(curl.OPT_SSL_VERIFYPEER, 0)
|
|
|
|
self.c:setopt(curl.OPT_HTTPHEADER, headers)
|
|
|
|
self.c:setopt(curl.OPT_HTTPHEADER, headers)
|
|
|
|
self.c:setopt(curl.OPT_URL, self.config.url)
|
|
|
|
self.c:setopt(curl.OPT_URL, self.config.url)
|
|
|
|
|
|
|
|
self.c:setopt(curl.OPT_TIMEOUT, 2)
|
|
|
|
self.c:setopt(curl.OPT_HEADERFUNCTION, h_build_w_cb(ret))
|
|
|
|
self.c:setopt(curl.OPT_HEADERFUNCTION, h_build_w_cb(ret))
|
|
|
|
self.c:setopt(curl.OPT_WRITEFUNCTION, build_w_cb(response_body))
|
|
|
|
self.c:setopt(curl.OPT_WRITEFUNCTION, build_w_cb(response_body))
|
|
|
|
self.c:setopt(curl.OPT_POSTFIELDS, postfields(postdata))
|
|
|
|
self.c:setopt(curl.OPT_POSTFIELDS, postfields(postdata))
|
|
|
|