execute curl-option
Use this command to set the curl (Client URL) options.
Syntax
execute curl-option header {auto|<header>}
execute curl-option http-version {0.9|1.0|1.1|2}
execute curl-option interface {auto|<interface or IP>}
execute curl-option raw {enable|disable}
execute curl-option raw-data {auto|<string>}
execute curl-option reset
execute curl-option timeout <integer>
execute curl-option view-settings
header |
Specify the curl header(s) or set as "auto". Multiple headers can be separated by three colons,"::: ". |
http-version |
Specify the HTTP version: 0.9, 1.0, 1.1, or 2. The default version is 1.1. |
interface |
Specify the interface or IP, or set as "auto". |
raw |
Enable this option to disable all internal HTTP decoding of content or transfer encodings to allow them to pass unaltered in its "raw" form. This option is disabled by default. |
raw-data |
Specify the raw body data or set as "auto". The allowable content length is 1-8192 characters. |
reset |
Reset settings. |
timeout |
Specify the connection timeout in seconds. Range is 1-120 seconds, and the default is 10 seconds. |
view-settings |
View the current options of the curl. |
Example
FortiADC-VM # execute curl-option view-settings Curl Options: Interface: port1 Header: xxx Http version: 1.0 Raw: enable Raw data: auto Timeout: 10 Default Curl Options: Interface: auto Header: auto Http version: 1.1 Raw: disable Raw data: auto Timeout: 10