refer: https://reqbin.com/curl

使用-X POST 进行post,使用 -d传递参数

curl -X POST https://reqbin.com/echo/post/json -H 'Content-Type: application/json' -d '{"login":"my_login","password":"my_password"}'

使用proxy进行post

curl -ipv4 --socks5 #{ip}:#{port} #{url} -H 'Content-Type: application/json' -d '{"id":"#{i}"}'

此时不必要使用-X POST

Note: Unnecessary use of -X or --request, POST is already inferred.