Making POST request from curl

Here is an example POST request using curl

curl -d "param1=value1¶m2=value2" -X POST http://sok.test/post.php

Sending JSON string

curl  http://video.com/like -X POST --data '{"like":"1","media_id":"781","time_start":"100:36:19.584"}'

Post a variable

curl  URL_HERE -X POST --data 'badSSN=111111111'
Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *