windows 系统通过curl 访问url连接,确定地址是否正常提供服务,并且通过ie浏览器批量访问url地址,显示访问连接地址的状态,附件时代码
@echo off
echo ************************************************************************
echo ****************************xxx****************************
echo ************************************************************************
echo 节点一
start www.baidu.com
ping -n 5 127.0.0.1>null
ECHO 节点一端口:
curl -I www.baidu.com|findstr HTTP
echo THE END
pause
exit
@echo off
echo ************************************************************************
echo ****************************xxx****************************
echo ************************************************************************
echo 节点一
start www.baidu.com
ping -n 5 127.0.0.1>null
ECHO 节点一端口:
curl -I www.baidu.com|findstr HTTP
echo THE END
pause
exit
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/30345407/viewspace-2157090/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/30345407/viewspace-2157090/
本文介绍了一种在Windows系统中使用curl和IE浏览器批量验证URL连接有效性的方法。通过curl命令检查URL状态,并利用IE进行实际访问以确认其可用性。
2318

被折叠的 条评论
为什么被折叠?



