title: Send request with body with openresty lua-resty-http module
body: <p>I am trying to send request via http module lua-resty-http. How I can send request with body data. </p>
  
  <p>I have tried this </p>
  
  <pre><code>hc:connect("127.0.0.1", 82)
  
  dates = ngx.req.get_post_args()
  
  local hc = http:new()
  
  result, errors = hc:request{
      path = requrl,
      method = "POST",
      body = dates,
      headers = {
        ["Host"] = "localhost",
      },
  }
  </code></pre>
  
  <p>Basically I am trying to send a lua table to another server location. And how to capture on that lua table location.</p>
  
  <p>I'd appreciate a detailed explanation.</p>