SET_FLAGS
Optionally, set flags to control the behavior of the subsequent SEND operation.
UHTTP.SET_FLAGS(
Flags)
UHTTP.SET_FLAGS(24) ; sets flags 8 and
16
Parameters
Parameter |
Type |
Direction |
Description |
|
---|---|---|---|---|
Flags |
string |
IN |
Sum of one or more codes that represent options to control the behavior of the next SEND request: If not specified prior to a
SEND call, or Flags is The following flag codes are allowed: |
|
|
Do not perform host verification. Errors
caused by certificate host names that do not match the request host names are ignored. This is
equivalent to the This flag applies only to secure
connections, that is, connections that use the |
|||
|
Do not perform peer server verification.
Errors caused by peer server certificates are ignored(do not perform peer server verification).
This is equivalent to the If this flag is not set, the local
certificate store file This flag applies only to secure
connections, that is, connections that use the |
|||
|
Do not calculate the content-length of
the payload itself for a |
|||
|
Send headers, if provided, with all methods. This is the default behavior. The flag is supported for compatibility purposes, and does not need to be set. |
|||
|
Enable each HTTP request/response to be handled individually. By default, status values in the 300 range are automatically redirected. By setting this flag, the redirections are not followed, enabling you to catch them and provide alternate processing. |
Return Values
Value |
Meaning |
---|---|
|
Success |
|
An internal error occurred |
Use
Can be used before the SEND operation.
Description
The SET_FLAGS operation is used to control the behavior of the SEND operation.