....zipHTTP/1.1//请求行(Request Line),表示使用GET方式取得文件,使用HTTP/1.1协议 //以下为请求头部(Request Head) S01—5—2616:10:44Connection:close S 01—5-26 16:10:44 Host:anonymous.com SOl一5—26 16:10:44 Accept:}/女 S...
基于24个网页-相关网页
Use HEAD request method 使用HEAD请求方法
Therefore, before a request is sent, make sure that the username and password are set correctly in the HTTP request head.
因此请求被发送之前,确保在HTTP头部的用户名和密码是设置正确的。
To do this, make a HEAD request and then check for a 404 error in your callback function; Listing 11 shows a sample callback.
要实现这种功能,生成一个HEAD请求,然后在回调函数中检查404错误;清单11给出了一个简单的回调函数。
Still, sometimes it's useful to know exactly what is available; you never know when creativity will strike and you'll need the HEAD request!
不过,有时确切地了解目前什么可用也是非常有用的;您永远不会知道何时创造力就会迸发或者何时需要 HEAD 请求!
应用推荐