使用curl命令:
[root@localhost html]# curl http://localhost/index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> test </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
test
</body>
</html>
备注:该博文为原创博文,如果转发请注明出处。(max.li)
本文展示了如何使用curl命令获取本地HTML页面,并解析其基本元信息。
687

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



