另一个可能性是打开firebug(或将其变成一个greasemonkey脚本)并使用javascript发送你的HEAD请求.
// Added comments
 var xmlhttp = new XmlHttpRequest(); 
 xmlhttp.open("HEAD", "/test/this/page.php",true); // Make async HEAD request (must be a relative path to avoid cross-domain restrictions)
 xmlhttp.onreadystatechange=function() {
  if (xmlhttp.readyState==4) { // make sure the request is complete
   alert(xmlhttp.getAllResponseHeaders()) // display the headers
  }
 }
 xmlhttp.send(null); // send request
XmlHttpRequests继承cookie和当前会话(来自.htaccess等的身份验证).
使用方法:
Live HTTP Headers可以使用其重播功能发送任意HTTP请求.虽然它有点繁琐.因为它是一个HEAD请求,所以没有输出可以在本地看到(它通常显示在浏览器窗口中).
首先,您需要打开Live HTTP Headers(LHH)窗口,使用GET从浏览器执行您的请求,然后在LHH窗口中选择该请求并选择Replay....然后,在弹出的窗口中,将GET更改为HEAD并根据需要调整标题.
按下Replay将发出请求.
| 归档时间: | 
 | 
| 查看次数: | 30213 次 | 
| 最近记录: |