July 30, 2021
Curl is a program that allows us to scan data from or to a server without the interaction of each user.
Install curl package via terminal:
# Update your linux
$ sudo apt update && sudo apt upgrade
# Next, install cURL
$ sudo apt install curl
# Verify install of curl
$ curl --version
Here's a snippet of using the curl command:
# display server header information
$ curl -I http://example.com
# retrieving data in json format
$ curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET https://api.minergate.com/
# post data by file
$ curl -X POST -d data.json https://api.minergate.com/1.0/auth/login
author : doctor. moeclay