在linux中发送post请求有两个命令:curl与wget

1, curl URL -d "param1=value1&param2=value2"

如:

curl http://book.sarathlakshman.com/lsc/mlogs/submit.php -d "host=test-host&user=slynux"


2, wget URL --post-data "param1=value1&param2=value2"

如:

wget  http://book.sarathlakshman.com/lsc/mlogs/submit.php --post-data "host=test-host&user=slynux"

Logo

更多推荐