cURL
cURL which stands for "client for URL" is a useful networking tool that can be used in command lines or scripts for transferring data. It supports multiple protocols.
Basic commands:
# Basic
$ curl -X <method> <HTTP_URL>
# With headers
$ curl -X <method> -H <headers> <HTTP_URL>
# GET: no need to specify the -X flag
$ curl -H <headers> <HTTP_URL>
# VERBOSE: increasing level of output
$ curl ... -v
$ curl ... -vv
$ curl ... -vvvExamples
Sending a GET request to https://domain.com with query data
https://domain.com with query data$ curl https://domain.com?key=valuePOST
x-www-form-urlencoded
json
Form-data
SOCKS5 proxy
Last updated