|  | 
 | ||||
|        | |||||
|  | ||||||
| Related Topics | Other Library Functions | |||||
| function | HttpRequestSend | 
| Library: HTTP support (OMHTTP) Include: omhttp.xin | 
define function HttpRequestSend
            modifiable  HttpRequest Request
   into  modifiable   HttpResponse  Response
   timeout  value       integer Timeout optional initial {10000}
Argument definitions
Use HttpRequestSend to construct an HTTP message from an HTTP request object and send it from the client to the server. HttpRequestSend then waits for the server response that is then used to populate the HTTP response object argument.
You must include the following line at the beginning of your OmniMark program:
include "omhttp.xin"
Request is set to an error state if the TCP connection times out.
Response's object values are reset to their default values before being updated by the transaction.
    ; HttpRequestSend
    include "omhttp.xin"
  
    process
  
       local HttpRequest my-Request
       local HttpResponse get-Response
  
       HttpRequestSetFromUrl my-Request
          from "http://www.omnimark.com/home/home.html"
  
       HttpRequestSend my-Request into get-Response timeout 60000
  
       output get-Response{"entity-body"}
Copyright © Stilo International plc, 1988-2010.