您好,欢迎来到伴沃教育。
搜索
您的当前位置:首页怎么使用curl模拟http请求

怎么使用curl模拟http请求

来源:伴沃教育

get方式请求:

curl 地址:端口/路由

e.g:

curl 127.0.0.1:3000/test_sql

post方式请求:

curl -X POST -d "参数名=实参&参数名=实参" 地址:端口/路由

e.g:

curl -X POST -d "username=xianwx&password=test" 127.0.0.1:3000/auth

Copyright © 2019- bangwoyixia.com 版权所有 湘ICP备2023022004号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务