编程大白的博客

Windows下使用curl访问url后面参数接收不到的问题

Windows系统IDEA使用Terminal的curl时,访问url除第一个参数,后面参数接收不到的问题,需要记录一下。

在访问 http://localhost:8080/test/validate.json?id=123msg=123456 时。开始使用了转义字符将&进行转义,不起效果,任然得不到参数,只能获取id。

使用" "将链接包起来起来可以。

代码:curl -s “http://localhost:8080/test/validate.json?id=123msg=123456”。

« Previous

Android studio+opencv-4.1.0 开发环境搭建(一)

Next »

VS2017无法断点调试

© 2024 编程大白的博客. Generated with Hugo and Mainroad theme.