`
baitianli2007
  • 浏览: 3723 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

HttpRequest中status及readyState状态值

 
阅读更多
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获取完整的回应数据
分享到:
评论

相关推荐

    HttpRequest

    HttpRequest 解析数据 操作简单 用法易懂

    HttpRequest.java下载

    HttpRequest.java程序源码下载

    httpRequest

    (HttpWebRequest)WebRequest.Create(strUrlLine); 15. httpReq.Method = strHttpMethod; ... if (String.Compare(strHttpMethod, METHOD_POST, true) == 0) 17. { // POSTのI場e合? ...bufBody = encAsc.GetBytes...

    通过JavaServlet读取HttpRequest中的XML文件内容

    通过JavaServlet读取HttpRequest中的XML文件内容

    httpRequest封装工具类

    通过对httpRequest进行封装,可以更好的使用这个请求的方法。包括常用的post,get请求和结果的处理

    php HttpRequest class HTTP请求类及调用示例.rar

    一个牛人写的PHP HttpRequest class HTTP请求类,支持GET,POST,Multipart/form-data,类中函数的参数说明:  setConfig 设置连接参数  setFormdata 设置表单数据  setFiledata 设置文件数据  send 发送数据  ...

    xmlHttpRequest的status的值的含义

    xmlHttpRequest的status的值的含义

    带HttpRequest插件的firefox浏览器

    带HttpRequest插件的firefox浏览器。现在的新版firefox没有了HttpRequest这个测试RESTful或HTTP的好用、方便插件。现将HttpRequest插件和支持该插件的Firefox打成一个包,供有需要的人使用。该Firefox为英文版。

    HTTPrequest

    HTTP编程学习 GET POST 提交表单

    httprequest

    HTTP协议中的基本概念和URL,这一篇要来讲一下HTTP协议中的报文本身。如果说HTTP是Internet的信使,那么HTTP报文就是它用来搬东西的包裹了

    jsontools httprequest测试工具

    jsontools by zhangbin

    HTTPRequest-lib-master.rar

    HTTPRequest-lib-master IDEA2017测试通过,通过http request 获取网站数据

    As3访问http和webService的类,HttpRequest

    var req:HttpRequest=new HttpRequest(); req.Get(url,completeHandler); Post请求例子 var par:URLVariables=new URLVariables(); par.theCityName="北京"; req.Post(url,par,completeHandler); */...

    httpRequest-6.0.jar

    很好用的http工具,简洁方便,一个jar包搞定,只需把jar包导入项目中即可

    HTTPRequest 源码

    HTTPRequest is a single-header C++ library for making HTTP requests. You can just include it in your project and use it. HTTPRequest was tested on macOS, Windows, Haiku, BSD, and GNU/Linux, but it ...

Global site tag (gtag.js) - Google Analytics