curl
Focus
Focus

curl

Table of Contents

curl

Use the curl command to send an HTTP GET request to a destination.

Command

curl interface dst-URL (args=" ")

Options

dst-URLEnter the destination URL.
interfaceEnter the interface name or ID.
args= "-l"Use -I to send an HTTP HEAD request to fetch only the headers.
args= "-k"Allows connections to SSL sites without certificates.
args="-mnumber"Enter the maximum time in seconds allowed for the transfer.
args="-v"Makes the operation more talkative.

Command Notes

RoleSuper, Read Only
Related Commands
Introduced in Release 4.4.1

Example

curl controller1 http://www.google.com args="-I" HTTP/1.1 200 OK Date: Wed, 25 Oct 2017 14:26:26 GMT Expires: -1 Cache-Control: private, max-age=0 Content-Type: text/html; charset=ISO-8859-1 P3P: CP="This is not a P3P policy! See g.co/p3phelp for moreinfo." Server: gws X-XSS-Protection: 1; mode=block X-Frame-Options: SAMEORIGIN Set-Cookie: 1P_JAR=2017-10-25-14; expires=Wed, 01-Nov-2017 14:26:26 GMT; path=/; domain=.google.com Set-Cookie: NID=115=GLq9imCH9M-Ar8qQ_s09GowOc9mDrJC-esgzWdd_R1ghnCfMhaYKSbwuNpiNG6N0w74HY1gjkIn-WWPSdmteo9rDiGklmsNlMGydCkZaPhrAP9D1105jC5szPla3Bltp; expires=Thu,26-Apr-2018 14:26:26 GMT; path=/; domain=.google.com; HttpOnly Transfer-Encoding: chunked Accept-Ranges: none Vary: Accept-Encoding