<?php $url=http://www.baidu.com print_r(get_headers($url, 1)); ?> 转载于:https://blog.51cto.com/orangezz/1390099