starsz opened a new issue #2818: URL: https://github.com/apache/apisix/issues/2818
Hi, I advise using luasocket lib instead of `curl` in "bin/apisix". Although, it's very convenient to get HTTP responses by using "io.open" and "curl". But, I think it's not an elegant way and has some limitations. Such as can't distinguish error info between `Connection refused` and empty response. So I think we can use luasocket lib and create a common function in "cli/util.lua", so that we can deal with some HTTP request better in "bin/apisix". ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
