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.
Passwords can be retrieved from CyberArk credential provider using REST API. In the following note i’ll show how to get account details, including password or SSH-key, from CyberArk safe from the command line using curl. To authenticate on CyberArk i will use certificate-based authentication method.
Artifactory comes with a pre-configured default “admin” account. In this short note you will find the default Artifactory credentials and i will show how to test Artifactory login, password and API Key by authenticating on Artifactory’s REST API using curl command from the command line in Linux.
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.
To disable IPv6 on Linux it is required to modify Linux kernel parameters. IPv6 can be temporary disabled at runtime, using sysctl command or it can be disabled permanently using either sysctl configuration file or the required kernel parameters can be passed at boot time using GRUB configuration. In this note i am showing how […]
In the past it was not possible to create Zip files and Unzip archives in Windows without installing third-party programs like WinZip and 7-Zip. But now Windows has a built-in capability to Zip files and folders and Unzip archives from the command line using PowerShell. Starting from Windows 8 with PowerShell 3.0 and .NET Framework […]
Git stores configuration data in three different scopes: local, global and system. Using the git config command we can list all Git config settings as well as only local, global or system settings. For each scope, Git stores settings in different config files and it may be useful to know how to locate those files. […]
The telnet client in Windows is disabled by default. Before using the telnet command in Windows it is needed to enable the telnet client, otherwise you’ll get a result similar to the below messages: CMD: ‘telnet’ is not recognized as an internal or external command, operable program or batch file. PowerShell: The term ‘telnet’ is […]
If you try to cd to a network drive from the Windows CMD, you will get the following error: CMD does not support UNC paths as current directories Instead of cd command in CMD you can use a pushd command, that creates a drive mapping to the network share and then changes into a path […]
This is not obvious, but the Clear-History command in PowerShell won’t clear the history of the previous commands. The Clear-History clears only the commands entered during the current session, that could be displayed by the Get-History command. To clear the history in PowerShell, it needs to delete the file in which the previous commands are […]