Linux curl发送post请求携带form参数(Content-Type: application/x-www-form-urlencoded)

-H "Content-Type: application/x-www-form-urlencoded"可以省略

curl -d "param1=value1&param2=value2" -H "Content-Type: application/x-www-form-urlencoded" -X POST http://localhost:3000/data

猜你喜欢

转载自blog.csdn.net/a772304419/article/details/125304467