Takes 9 parameters, ServerName, Port, bSecure, Mode, Path, ContentType, extraHeader, body, rtnHeaders
Usage:
ServerName, Port, bSecure, Mode, Path, ContentType, ExtraHeader, Body, rtnHeaders
ServerName, Port, bSecure, Mode, Path, ContentType, ExtraHeader, Body, [""]
ServerName, Port, bSecure, Mode, Path, ContentType, [""], [""], [""]
ServerName, Port, bSecure, Mode, Path, ["application/lx-www-form-urlencoded"], [""], [""], [""]
ServerName, Port, bSecure, Mode, [""], ["application/lx-www-form-urlencoded"], [""], [""], [""]
ServerName, Port, bSecure, ["POST"], [""], ["application/lx-www-form-urlencoded"], [""], [""], [""]
ServerName, ["80" Or "443"], bSecure, ["POST"], [""], ["application/lx-www-form-urlencoded"], [""], [""], [""]
ServerName, ["80"], [""], ["POST"], [""], ["application/lx-www-form-urlencoded"], [""], [""], [""]
Description:
Perform an HTTP or HTTPS request to a designated server and port.
[New] Head, Body
Head = Extract$ Recv, ($CrLf & $CrLF)
Body = Remain$ Recv, ($CrLf & $CrLF)
Example:
[New] HttpBody HttpPath HttpParams HttpContentType HttpXHeader
HttpBody = ""
HttpPath = "/comments"
HttpParams = "userid=1"
HttpContentType = "application/json"
HttpXHeader = ""
[New] HttpResponse = Http$ "jsonplaceholder.typicode.com", "", "", "GET", (HttpPath & HttpParams), HttpContentType, HttpXHeader, HttpBody, ""