cURL: Tips

Options in the integration with Shell
CURL_OPT="-qSfs -m 60"
CURL_OPT_POST="-qSfs -m 60 -X POST"
POST Request

Send an Empty POST Request

curl -X POST

Send a POST Request with Form Data

curl -d 'login=emma&password=123' -X POST
GET Request

Send a GET Request and Print the Response to Screen


Send a GET Request and Save the Response to a File

curl -o response.txt

Revision #4
Created Sun, May 31, 2020 6:16 AM by Admin
Updated Fri, Sep 25, 2020 12:36 PM by Admin