furl_使用FURL检索网站标题

furl

It's important to know what headers your website and its files are communicating. For example, if your website is providing a 404 status, you're probably streaking toward your computer to fix the problem. Using the FURL library, you may retrieve website headers from the command line.

重要的是要了解您的网站及其文件正在通信的标题。 例如,如果您的网站状态为404,则可能是您向计算机迈进了一步,以解决此问题。 使用FURL库,您可以从命令行检索网站标题。

Shell脚本 (The Shell Script)


furl https://davidwalsh.name


Simple and quick -- just like every shell directive.

简单快捷-就像每个shell指令一样。

样本回应 (The Sample Response)


HTTP/1.1 200 OK
Date: Thu, 25 Jun 2009 01:50:50 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.2.6
X-Pingback: https://davidwalsh.name/xmlrpc.php
Cache-Control: max-age=1, private, must-revalidate
Expires: Thu, 25 Jun 2009 01:50:51 GMT
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=UTF-8


Don't have FURL? Install it by scripting this:

没有FURL吗? 通过编写以下脚本进行安装:


sudo port install furl


How is this useful? I would use this to periodically (cron) check my website to make sure it was up. What would you use this for?

这有什么用? 我将使用它定期(定时)检查我的网站以确保其正常运行。 您将用它做什么?

翻译自: https://davidwalsh.name/furl-retrieve-website-headers

furl

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值