curl进行post访问(开发记录)
curl -H “Content-Type: application/json” -X POST -d ‘{“username”: “aa”, “xxxId”: “13212312”, “token”: “c3f4fb66a06ee81b56bc747fc5ceec26779e4fc8accd3d19a54da7195d10879f”}’ “http://ip:port/api”
-d 后面跟json格式的参数,最后“http://ip:port/api”是接口访问地址