Skip to content

Commit

Permalink
fix: test\004.http 应该测试https请求
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Aug 6, 2024
1 parent bb82af6 commit 996c5b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/004.http/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ require "sysplus"

sys.taskInit(function()
sys.waitUntil("IP_READY")
-- local code, headers, body = http.request("GET", "https://www.air32.cn").wait()
-- log.info("http", code, json.encode(headers), body)
local code, headers, body = http.request("POST", "http://ql.betterforyou.com.cn:9090/ck/app/appUpgrade/findMiniUpgrade?equId=QL10000001&equType=1").wait()
log.info("http.get", code, headers, body)
local code, headers, body = http.request("GET", "https://httpbin.air32.cn/get").wait()
log.info("http", code, json.encode(headers), body)
-- local code, headers, body = http.request("POST", "http://ql.betterforyou.com.cn:9090/ck/app/appUpgrade/findMiniUpgrade?equId=QL10000001&equType=1").wait()
-- log.info("http.get", code, headers, body)

log.info("GoGoGo")
sys.wait(1000)
Expand Down

0 comments on commit 996c5b5

Please sign in to comment.