资料收集:XMLHTTP:XmlHttp的属性方法列表、XmlHttp(readyState,status)对应的状态值
来源:互联网 发布:跑步机推荐 知乎 编辑:程序博客网 时间:2024/05/17 02:28
原来有个网站:http://www.xmlhttp.cn
可惜,网站不知道什么原因关闭了。所以,只好把收集的资料放到我的博客上了。
一共两部分:
- XMLHTTP(readyState,status)对应的状态值
- XmlHttp的属性方法列表
正文:
XMLHTTP(readyState,status)对应的状态值
status状态值
长整形标准http状态码,定义如下: Number Description
100 Continue
101 Switching protocols
200 OK
201 Created
202 Accepted
203 Non-Authoritative Information
204 No Content
205 Reset Content
206 Partial Content
300 Multiple Choices
301 Moved Permanently
302 Found
303 See Other
304 Not Modified
305 Use Proxy
307 Temporary Redirect
400 Bad Request
401 Unauthorized
402 Payment Required
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Acceptable
407 Proxy Authentication Required
408 Request Timeout
409 Conflict
410 Gone
411 Length Required
412 Precondition Failed
413 Request Entity Too Large
414 Request-URI Too Long
415 Unsupported Media Type
416 Requested Range Not Suitable
417 Expectation Failed
500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout
505 HTTP Version Not Supported
readyState的状态值
0 (未初始化) 对象已建立,但是尚未初始化(尚未调用open方法)
1 (初始化) 对象已建立,尚未调用send方法
2 (发送数据) send方法已调用,但是当前的状态及http头未知
3 (数据传送中) 已接收部分数据,因为响应及http头不全,这时通过responseBody和responseText获取部分数据会出现错误,
4 (完成) 数据接收完毕,此时可以通过通过responseBody和responseText获取完整的回应数据
XmlHttp的属性方法列表长整形标准http状态码,定义如下: Number Description
100 Continue
101 Switching protocols
200 OK
201 Created
202 Accepted
203 Non-Authoritative Information
204 No Content
205 Reset Content
206 Partial Content
300 Multiple Choices
301 Moved Permanently
302 Found
303 See Other
304 Not Modified
305 Use Proxy
307 Temporary Redirect
400 Bad Request
401 Unauthorized
402 Payment Required
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Acceptable
407 Proxy Authentication Required
408 Request Timeout
409 Conflict
410 Gone
411 Length Required
412 Precondition Failed
413 Request Entity Too Large
414 Request-URI Too Long
415 Unsupported Media Type
416 Requested Range Not Suitable
417 Expectation Failed
500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout
505 HTTP Version Not Supported
readyState的状态值
0 (未初始化) 对象已建立,但是尚未初始化(尚未调用open方法)
1 (初始化) 对象已建立,尚未调用send方法
2 (发送数据) send方法已调用,但是当前的状态及http头未知
3 (数据传送中) 已接收部分数据,因为响应及http头不全,这时通过responseBody和responseText获取部分数据会出现错误,
4 (完成) 数据接收完毕,此时可以通过通过responseBody和responseText获取完整的回应数据
注:里面的链接都已经失效,就不要点了。
属性:
onreadystatechange* | 指定当readyState属性改变时的事件处理句柄。只写 |
readyState | 返回当前请求的状态,只读. |
responseBody | 将回应信息正文以unsigned byte数组形式返回.只读 |
responseStream | 以Ado Stream对象的形式返回响应信息。只读 |
responseText | 将响应信息作为字符串返回.只读 |
responseXML | 将响应信息格式化为Xml Document对象并返回,只读 |
status | 返回当前请求的http状态码.只读 |
statusText | 返回当前请求的响应行状态,只读 |
* 表示此属性是W3C文档对象模型的扩展.
方法:
abort | 取消当前请求 |
getAllResponseHeaders | 获取响应的所有http头 |
getResponseHeader | 从响应信息中获取指定的http头 |
open | 创建一个新的http请求,并指定此请求的方法、URL以及验证信息(用户名/密码) |
send | 发送请求到http服务器并接收回应 |
setRequestHeader | 单独指定请求的某个http头 |
- 资料收集:XMLHTTP:XmlHttp的属性方法列表、XmlHttp(readyState,status)对应的状态值
- XMLHTTP(readyState,status)对应的状态值
- xmlHttp(readyState,status)对应的状态值
- xmlHttp.status 和xmlhttp.readyState状态值
- XmlHttp.readyState属性 xmlHttp.status
- xmlhttp.readyState的状态问题
- XMLHTTP.readyState的状态解析
- XMLHTTP.readyState五种状态和XMLHTTP.status常见值
- xmlHttp的readyState 和 status参数详解
- xmlHttp的readyState 和 status参数详解
- xmlHttp的readyState 和 status参数详解
- xmlHttp的readyState 和 status参数详解
- xmlHttp.status 的值
- xmlHttp.status的值
- xmlHttp.status的值
- HTTP状态表 (xmlHttp.status的值)
- xmlHttp.readystate的几种状态
- XMLHTTP.readyState的五种状态
- WinXP SP3 截至 2008 年 8 月 更新汇总
- 将XP SP3集成到Windows XP安装光盘
- ibatis中的like语句的写法
- OMNA PUSH Application ID
- 详解spring事务属性
- 资料收集:XMLHTTP:XmlHttp的属性方法列表、XmlHttp(readyState,status)对应的状态值
- java用反射得到对象的属性值
- Nutch
- java分页代码实现2
- 90后80后70后60后和50后的无奈
- listbox
- VSTS 安装过程(双服务器安装)
- linux内核空间访问文件系统代码实现
- spring 嵌套事务 详解