Bug:Fix file validation issue
[vnfsdk/refrepo.git] / vnfmarket / src / main / webapp / vnfmarket / node_modules / xmlhttprequest / README.md
1 # node-XMLHttpRequest #
2
3 node-XMLHttpRequest is a wrapper for the built-in http client to emulate the
4 browser XMLHttpRequest object.
5
6 This can be used with JS designed for browsers to improve reuse of code and
7 allow the use of existing libraries.
8
9 Note: This library currently conforms to [XMLHttpRequest 1](http://www.w3.org/TR/XMLHttpRequest/). Version 2.0 will target [XMLHttpRequest Level 2](http://www.w3.org/TR/XMLHttpRequest2/).
10
11 ## Usage ##
12
13 Here's how to include the module in your project and use as the browser-based
14 XHR object.
15
16         var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
17         var xhr = new XMLHttpRequest();
18
19 Note: use the lowercase string "xmlhttprequest" in your require(). On
20 case-sensitive systems (eg Linux) using uppercase letters won't work.
21
22 ## Versions ##
23
24 Prior to 1.4.0 version numbers were arbitrary. From 1.4.0 on they conform to
25 the standard major.minor.bugfix. 1.x shouldn't necessarily be considered
26 stable just because it's above 0.x.
27
28 Since the XMLHttpRequest API is stable this library's API is stable as
29 well. Major version numbers indicate significant core code changes.
30 Minor versions indicate minor core code changes or better conformity to
31 the W3C spec.
32
33 ## Supports ##
34
35 * Async and synchronous requests
36 * GET, POST, PUT, and DELETE requests
37 * All spec methods (open, send, abort, getRequestHeader,
38   getAllRequestHeaders, event methods)
39 * Requests to all domains
40
41 ## Known Issues / Missing Features ##
42
43 For a list of open issues or to report your own visit the [github issues
44 page](https://github.com/driverdan/node-XMLHttpRequest/issues).
45
46 * Local file access may have unexpected results for non-UTF8 files
47 * Synchronous requests don't set headers properly
48 * Synchronous requests freeze node while waiting for response (But that's what you want, right? Stick with async!).
49 * Some events are missing, such as abort
50 * getRequestHeader is case-sensitive
51 * Cookies aren't persisted between requests
52 * Missing XML support
53 * Missing basic auth