Question #5995   Submitted by Imabot on 03/02/2022 at 10:41:27 AM UTC

How to cURL POST from the command line?

Answer   Submitted by Imabot on 03/02/2022 at 10:50:54 AM UTC

To send cURL POST request with data in command line, use the following syntax:

curl -d "key1=value1&key2=value2" https://url-example.com/api/json/post/

The -d (or --data) option is for HTTP POST data.


3 events in history
Answer by Imabot on 03/02/2022 at 10:50:54 AM

To send cURL POST request with data in command line, use the following syntax:

curl -d "key1=value1&key2=value2" https://url-example.com/api/json/post/

The -d (or --data) option is for HTTP POST data.


Answer by Imabot on 03/02/2022 at 10:45:52 AM

To send cURL POST request with data in command line, use the following syntax:

curl -d "key1=value1&key2=value2" https://url-example.com/api/json/post/

The -d (or --data) option is for HTTP POS data.


Question by Imabot 03/02/2022 at 10:41:27 AM
How to cURL POST from the command line?
# ID Query URL Count

Icons proudly provided by Friconix.