HTTPRequest.exec

execute POST request. Send form-urlencoded data

  1. HTTPResponse exec(string url, string[string] rqData)
    struct HTTPRequest
    exec
    (
    string method
    )
    (
    string url
    ,
    string[string] rqData
    )
    if (
    method == "POST"
    )
  2. HTTPResponse exec(string url, PostFile[] files)
  3. HTTPResponse exec(string url, R content, string contentType)
  4. HTTPResponse exec(string url, string[string] params)

Parameters

url string

url to request

rqData string[string]

data to send

Return Value

Response

Examples

rs = rq.exec!"POST"("http://httpbin.org/post", ["a":"b", "c":"d"]);

Meta