Closed ryannining closed 9 years ago
ngx.say always return nil, what is the point??
oh sorry, wrong code
ngx.say(body)
Body is nil ? is it correct way ? i am trying to load image from other website and process is in my app code.
i try to ngx.say all result from the request function
ngx.say(ok,code,headers,status,body)
Result: nilsock connected failed no resolver defined to resolve "www.tokoled.net"nilnilnil
add above config into nginx.conf
resolver 8.8.8.8;
Thx, its work now...
Are my code correct ? i have new project to migrate my other website to LUA+ OpenResty, but it need phpcurl, so i think this package is suitable to replace phpcurl function.