打开git bash,输入 curl baidu.com,收到返回

<html>
<meta http-equiv="refresh" content="0;url=http://www.baidu.com/">
</html>

baidu.com跳转www.baidu.com

把代码新建文件运行,发现是一个重定向的功能。

 

如果,curl www.baidu.com 的代码呢?

是这样的:

baidu.com跳转www.baidu.com

 

$ curl -v www.baidu.com 可以看到请求的报文的信息

相关文章:

  • 2021-12-23
  • 2021-12-23
  • 2022-02-02
  • 2021-06-28
  • 2021-07-16
  • 2021-05-22
  • 2022-12-23
  • 2021-12-23
猜你喜欢
  • 2021-12-23
  • 2021-07-17
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
  • 2022-03-09
  • 2021-09-10
相关资源
相似解决方案