admin管理员组

文章数量:1566356

教程包括:windows环境下载安装curl,bat批处理程序使用curl工具调用http-get接口

下载地址:https://curl.haxx.se/windows/

百度网盘备份:https://pan.baidu/s/1yHYon2DGaMZR90cFse32wQ 提取码:6wm2  

windows的好处就是双击傻瓜式安装。以下为官网下载安装截图:

选择合适的版本下载。

解压后如上图所示,打开bin目录有curl工具可执行文件

在当前路径下使用curl指令是没有问题的。

如果不在解压路径下需要输全地址:

下面封装到bat批处理文件里。

@echo off
set a=%date%
set b=%time%
echo %a% %b% >>log_update.txt 
.\curl\bin\curl localhost:8081/update  >>log_update.txt 
echo -end>>log_update.txt

 

本文标签: 工具接口软件Windowshttp