Fortinet black logo

CLI Reference

execute curl

execute curl

Use this command to set the curl (Client URL). The curl is a CLI tool that enables data transfer over various network protocols. The curl communicates with a web server or application server by specifying a relevant URL and the data that need to be sent or received.

Syntax

execute curl <URL>

<URL>

Specify the curl and FortiADC will output the HTML contents found on the URL.

Example

FortiADC-VM # execute curl www.google.com
*   Trying 199.16.158.190:80...
* Connected to www.google.com (199.16.158.190) port 80
> GET / HTTP/1.1
> Host: www.google.com
> User-Agent: curl/8.4.0
> Accept: */*
>
< HTTP/1.1 200 OK
HTTP/1.1 200 OK

execute curl

Use this command to set the curl (Client URL). The curl is a CLI tool that enables data transfer over various network protocols. The curl communicates with a web server or application server by specifying a relevant URL and the data that need to be sent or received.

Syntax

execute curl <URL>

<URL>

Specify the curl and FortiADC will output the HTML contents found on the URL.

Example

FortiADC-VM # execute curl www.google.com
*   Trying 199.16.158.190:80...
* Connected to www.google.com (199.16.158.190) port 80
> GET / HTTP/1.1
> Host: www.google.com
> User-Agent: curl/8.4.0
> Accept: */*
>
< HTTP/1.1 200 OK
HTTP/1.1 200 OK