Library: HTTP support (OMHTTP)
define function HttpRequestSetFromUrl modifiable stream Request from value string URL
HttpRequestSetFromUrl function to populate several key items of the request object.
You must include the following line at the beginning of your OmniMark program:
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
Usually, you would call
HttpRequestSetFromUrl in a client program.
include "omhttp.xin" process local HttpRequest request ; set the host and path HttpRequestSetFromUrl request from "http://www.omnimark.com/home/home.html" ; set the port and two search items in addition to the host and path HttpRequestSetFromUrl request from "http://www.omnimark.com:1080/home/home.html?name1=value1&name2=value2"