Jump to content

curl cli browser


rev.dennis
 Share

Recommended Posts

this is a great tool that I highly recommend using when troubleshooting. Most importantly its reliable.

Here is an example of being able to test a https URL redirect

curl -ksI https://zahsystems.com

-k = process https (443). (SSL) This option explicitly allows curl to perform "insecure" SSL connections and transfers. All SSL connections are attempted to be made secure by using the CA certificate bundle installed by default. This makes all connections considered "insecure" fail unless -k, --insecure is used.

-s = Silent or quiet mode. Don't show progress meter or error messages. Makes Curl mute. It will still output the data you ask for, potentially even to the terminal/stdout unless you redirect it.

-I = (HTTP/FTP/FILE) Fetch the HTTP-header only! HTTP-servers feature the command HEAD which this uses to get nothing but the header of a document. When used on an FTP or FILE file, curl displays the file size and last modification time only.

The results

HTTP/1.0 302 Found
Location: https://dj-direct.int.zahsystems.com/consumerdirectadmin/home.action
Server: BigIP
Connection: Keep-Alive
Content-Length: 0

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...