Page History
...
Code Block |
---|
Response = HTTPClient_Services(Service, Param1, Param2, Param3, Param4, Param5, Param6, Param7, Param8, Param9, Param10@Service, @Params) |
Returns
The meaning of the response value depends on the service.
Parameters
Parameter | Description |
---|
@Service | The name of the service being requested. Required. |
@Params | Generic parameters. Refer to a specific service to determine the actual parameters used. |
Remarks
HTTPClient_Services
provides very useful application services so OpenInsight applications can make HTTP requests to other web servers. The response to each request is kept in memory until the next request is made, thus allowing the developer to get various HTTP response results when it is convenient (such as the body, status code, or response header values).
Services
Service | Description |
---|---|
SendHTTPRequest | Usage: |
Comments:
Returns: | |||||||||||||||||||||||||||||||||
SetRequestHeaderFields | Usage: |
|
Comments: |
Sets the |
Request Header Fields as indicated by the HeaderList argument. The HeaderList should not be formatted as a list rather than an associated multivalue array. This is easier for the developer to manage in the code that calls this service. Returns: |
N/A | |
SetRequestHeaderField | Usage: |
Comments: |
Sets the indicated Request Header Field with the indicated |
value. Returns: |
N/A | |
GetRequestHeaderFields | Usage: |
Comments: |
Returns all of the Request Header Field names and values. This returns an @FM/@VM list of names and values. This is called from the Returns: |
An @FM/@VM list of request header names and values. | |
GetRequestHeaderField | Usage: |
Comments: |
Returns the value previously set for the indicated |
Request Header Field. Returns: |
value previously set for the indicated Request Header Field. | |
SetResponseHeaderField | Usage: |
Comments: |
Sets the indicated Response Header Field with the indicated value. This is called from the Returns: |
N/A | |
GetResponseHeaderFields | Usage: |
Comments: |
Returns all of the Response Header Field names and values. This returns an @FM/@VM list of names and values. Returns: |
An @FM/@VM list of response header names and values. | |
GetResponseHeaderField | Usage: |
Comments: |
Returns the value previously set for the indicated Response Header Field. The Name argument is case-insensitive but if the indicated Response Header Field has not been set then an error condition will be set. Returns: |
value previously set for the indicated Response Header Field. |
GetCookie | Usage: |
|
Comments: Returns: | |
GetCookies | Usage: Comments: |
Returns all cookie strings from the response headers using the indicated delimiter. If the Delimiter argument is empty, all cookie strings will be delimited with @FM. Returns: | |
SetResponseStatusCode | Usage: Comments: Returns: |
The HTTP response body from the server.
GetResponseStatusCode | Usage: |
Comments: |
Gets the response status code generated by the most recent HTTP request. Returns: |
response status code generated by the most recent HTTP request. | |
SetResponseStatusPhrase | Usage: |
Comments: |
Sets the response status phrase generated by the most recent HTTP request. This is called from the Returns: |
N/A | |
GetResponseStatusPhrase | Usage: |
Comments: |
Gets the response status phrase generated by the most recent HTTP request. Returns: |
response status phrase generated by the most recent HTTP request. | |
SetResponseBody | Usage: |
|
|
Comments: |
The HTTP
Sets the response body generated by the most recent HTTP request. This is called from the |
Returns: | |
GetResponseBody | Usage: |
Comments: |
Gets the response body generated by the most recent HTTP request. This is the same response that the Returns: |
response body |
generated by the most recent HTTP request. | |
SetTimeoutDuration | Usage: |
Comments: |
Sets the timeout duration that will be used before an HTTP request will abort. This is only applicable if the request is asynchronous. If the timeout duration is empty, a default setting of 30 minutes (1800 seconds) will be set. Returns: |
N/A | |
GetTimeoutDuration | Usage: |
Comments: |
Returns the timeout duration that will be used before an HTTP request will abort. This is only applicable if the request is asynchronous. If the timeout duration is empty, a default setting of 30 minutes (1800) seconds) will be returned. Returns: |
timeout duration that will be used before an HTTP request will abort. | |
ClearResponseSettings | Usage: |
Comments: |
Clears all of the global common variables used for responses. This is called from the Returns: |
N/A | |
ClearRequestSettings | Usage: |
Comments: |
Clears all of the global common variables used for requests. This is called from the Returns: |
...
N/A |
Params
The proper use of the generic arguments are defined in the definition of each service above.