curl命令:(和postman请求是一个道理,只不过这个是用于liunx服务器直接请求的命令)

curl -l -H "Content-type: application/json" -X POST -d '入参' 请求url
例如:curl -l -H "Content-type: application/json" -X POST -d '{"name":"zs"}' https://localhost:8080/api/getName

 

验证端口是否开通(有没有权限)

telnet ip 端口

 

相关文章:

  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2021-12-31
猜你喜欢
  • 2022-01-20
  • 2021-09-17
  • 2021-05-29
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
  • 2021-10-06
相关资源
相似解决方案