HTTP 요청 보내기
GET 요청 보내기
-- http://naver.com URL로 GET 요청 보내고, res로 데이터 받기
Server.HttpGet('http://naver.com', function(res)
print(res) -- 웹페이지가 반환한 결과 텍스트가 출력됩니다.
end)POST 요청 보내기
-- t 라는 테이블을 만들고, 보낼 POST 요청 데이터 넣기
t = {}
t.id = 1234
t.name = "Hello"
-- http://naver.com URL로 요청 보내고, res로 데이터 받기
Server.HttpGet('http://naver.com', t, function(res)
print(res) -- 웹페이지가 반환한 결과 텍스트가 출력됩니다.
end)웹 서버에서 데이터 받기
Last updated