安装curl:https://curl.haxx.se/download.html

测试:tomcat默认禁用put,delete返回403

GET

curl -HAccept:text/plain http://example.com/base

PUT

curl -XPUT -HContent-type:text/plain --data "stuff:morestuff" http://example.com/base?param=val

DELETE

curl -XDELETE http://example.com/base/user/123

POST

curl -d "param1=value1&param2=value2" http://example.com/base/

相关文章:

  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2021-07-19
猜你喜欢
  • 2022-12-23
  • 2018-03-21
  • 2021-10-07
  • 2021-06-13
  • 2021-06-16
  • 2021-09-02
  • 2021-08-05
相关资源
相似解决方案