ShellHacks
Command-Line Tips and Tricks

curl

  • Blog

cURL: Add Header, Multiple Headers, Authorization

Posted on January 16, 2020January 17, 2020by admin

curl allows to add extra headers to HTTP requests. The HTTP headers are used to pass additional information between the client and the server. In this article i am showing the examples of how to add header in curl, how to add multiple headers and how to set authorization header from the Linux command line.

Read More
1 Comment
  • Blog

JFrog Artifactory: Download Artifact using cURL

Posted on December 18, 2019January 16, 2020by admin

JFrog’s Artifactory is a binary repository manager. The artifacts from Artifactory can be downloaded using REST API. In this note i am showing how to download an artifact (simple file.zip) from generic Artifactory repository using curl command from the command line in Linux or from the PowerShell in Windows.

Read More
2 Comments
  • Blog

cURL: Set User-Agent

Posted on May 24, 2018May 24, 2018by admin

When browser connects to a website, it includes a User-Agent string in its HTTP header. Sometimes you may need to change User-Agent with curl to access some URL as a different browser. This is a small note on how to set a custom User-Agent with curl from the command line in Linux.

Read More
No comments yet
  • Blog

Check a Website Availability from the Linux Command Line

Posted on December 27, 2016February 24, 2017by admin

You can easily test a a website availability from the Linux command line and get the status codes from the web-server using commands like TELNET or CURL. Check a website availability with CURL Execute the following command to check whether a web site is up, and what status message the web server is showing: $ […]

Read More
5 Comments
  • Blog

What is my Public IP address?

Posted on December 27, 2016February 24, 2017by admin

Use one of the following commands to check your public IP address from the Linux command line. Get the Public IP address from the Linux Command Line 0. Easy to Remember Services Get your external IP address using the curl command: $ curl ifconfig.me $ curl ip.appspot.com $ curl icanhazip.com Get your external IP address […]

Read More
2 Comments

Online Tools

  • Base64 Decode
  • Base64 Encode

Tags

access-control anonymity ansible apache archive arduino artifactory aws bash boot cmd command-line curl dns docker encryption git gitlab java jenkins kubernetes linux macos mail mongodb mysql network openssl pdf php powershell prometheus python raspberry pi ssh sublime text systemd telegram telnet text-processing tor tsm windows wordpress yum
  • Telegram
  • Twitter
  • RSS
Privacy
Copyright © 2011-2022 | www.ShellHacks.com