c语言请求后台接口,可以通过执行shell命令来调用相关工具,如curl,来实现。
system("curl http://IP/index");
相当于在命令行终端中请求接口http://IP/index
curl http://IP/index
顶一下

(0)
0%
踩一下

(0)
0%
- 相关评论
- 我要评论
-