命令详细资料网站:https://man.linuxde.net/curl

1、发送GET

curl http://127.0.0.1:8080/login?admin&password=12345678

 

2、发送POST

curl -d "user=admin&password=12345678" http://127.0.0.1:8080/login

 

3、发送指定格式并且输出到日志

curl -H "Content-Type:application/json" -X POST -d "user=admin&password=12345678" http://127.0.0.1:8080/login >> ./alert.log

 

相关文章:

  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-03-01
  • 2021-09-28
  • 2022-12-23
  • 2022-02-27
  • 2021-11-01
相关资源
相似解决方案