get:
curl protocol://address:port/url?args
多个参数要用引号:
http://10.1.30.210:50081/bigBusData/check/getAllInf?"limit=10&offset=1&situation=&year=2020"
post:
curl -d "args" protocol://address:port/url
乱码解决:
Windows CMD的默认编码是GBK(代码页936),用其自带的chcp指令改成UTF-8(代码页65001)就行了。
cmd输入 chcp 65001
如果你想让CMD永久使用Unicode的话,可以在注册表
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
里添加一个字符串项
AutoRun
值为
chcp 65001 >nul 2>&1
这样cmd.exe每次启动时会自动将代码页设置为UTF-8。