lua发送http请求
文章目录
</div>
<h3 id="直接发送"><a href="#直接发送" class="headerlink" title="直接发送"></a>直接发送</h3><figure class="highlight plain"><table><tbody><tr><td class="code"><pre><div class="line">local http = require("socket.http");</div><div class="line">local body = http.request("http://x86.pub");</div><div class="line">print(body)</div></pre></td></tr></tbody></table></figure>
获取状态码
|
获取 response header
|
自定义 http 请求
|