Syntax
define function HttpRequestSetFromUrl
modifiable stream Request
from value stream URL
Purpose
The HttpRequestSetFromUrl function is a shortcut that is used to populate several key items of the request object. Usually, HttpRequestSetFromUrl is called in a client program.
With HttpRequestSetFromUrl , you can set the host, port, path, and search items. By setting these items, a valid request object is created and may be sent using HttpRequestSend .
Input arguments:
- "Request" -- an HTTP request object.
- "URL" -- the uniform resource locator (URL).
Example:
; HttpRequestSetFromUrl
local HttpRequest my-Request
HttpRequestSetFromUrl my-Request
from "http://www.omnimark.com/whats-new.html"
|