![]() ![]() ![]() ![]() ![]() ![]() ![]() |
|||||
|
|
|||||
| function | HttpRequestSend | ||||
| Related Syntax | Other Library Functions |
|
Library: HTTP
Include: omtcp.xin, omhttp.xin |
define function HttpRequestSend
modifiable stream Request
into modifiable stream Response
timeout value counter Timeout optional initial {10000}
This function constructs an HTTP message from an HTTP request object and sends it from the client to the server. The function waits for the server response that is then used to populate the HTTP response object argument.
Input arguments:
Output argument:
Example:
; HttpRequestSend
local HttpRequest my-Request
local HttpResponse get-Response
HttpRequestSetFromUrl my-Request
from "http://www.omnimark.com/whats-new.html"
HttpRequestSend my-Request into get-Response timeout 60000
output get-Response^"entity-body"
| ---- |