你可以使用以下的bat脚本来请求curl post请求的url:

@echo off

REM 设置curl的路径
set "curlPath=C:\path\to\curl.exe"

REM 设置请求的URL
set "url=http://example.com/post"

REM 设置请求的数据
set "postData={"name":"John","age":30}"

REM 创建一个临时文件来保存请求的数据
set "tempFile=%temp%\postdata.txt"
echo %postData% > %tempFile%

REM 发送post请求
"%curlPath%" -X POST -d @%tempFile% %url%

REM 删除临时文件
del %tempFile%

将上述脚本中的C:\path\to\curl.exe替换为你系统中curl.exe的路径,并将http://example.com/post替换为你要请求的URL。在postData变量中设置你要发送的数据。

保存脚本为post.bat并运行,它将在5分钟内每隔一段时间发送一次post请求。你可以根据需要调整时间间隔

使用bat脚本5分钟请求curlpost请求url

原文地址: https://www.cveoy.top/t/topic/iBxr 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录