« eval 把参数组合成命令再执行 | Main | 网易推出免费域名邮箱 谷歌微软网易搜狐四家邮局服务综述 »
October 20, 2006
wget --spider 取 HTTP 返回值
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。 https://windtear.net/archives/2006/10/20/001117.html http://windtear.net/archives/2006/10/20/001117.html wget --spider 取 HTTP 返回值 wget --spider 看返回值 如: 200 304 403 404 ... HTTP request sent, awaiting response... 200 OK Length: 1,494 [text/html] 200 OK HTTP request sent, awaiting response... 404 Not Found 17:41:50 ERROR 404: Not Found. --save-headers 可以保存时增加 HTTP Response Header curl -I/--head 看详细的 HTTP Response Header (相当于 HEAD method) -w/--write-out %http_code% |
Posted by windtear at October 20, 2006 8:42 PM