curl

curl,全称CommandLine URL,顾名思义,curl命令是在命令行方式下工作,利用URL的语法进行数据的传输或者文件的传输。

1.查看网页源码

直接在curl命令后加上网址,就可以查看到网页源码。

curl www.sina.com
返回结果:
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

posted @ 2021-06-27 17:18  一只测试小菜鸡  阅读(724)  评论(0编辑  收藏  举报