{"name":"xmlhttprequest-ssl","version":"2.1.2","keywords":["xhr","ajax"],"author":{"name":"Michael de Wit"},"_id":"xmlhttprequest-ssl@2.1.2","homepage":"https://github.com/mjwwit/node-XMLHttpRequest#readme","bugs":{"url":"http://github.com/mjwwit/node-XMLHttpRequest/issues"},"dist":{"shasum":"e9e8023b3f29ef34b97a859f584c5e6c61418e23","tarball":"http://registry-npm.ywwl.com/xmlhttprequest-ssl/download/xmlhttprequest-ssl-2.1.2.tgz","fileCount":4,"integrity":"sha512-TEU+nJVUUnA4CYJFLvK5X9AOeH4KvDvhIfm0vV1GaQRtchnG0hgK5p8hw/xjv8cunWYCsiPCSDzObPyhEwq3KQ==","signatures":[{"sig":"MEUCIFGWXNImenHqhAKCUjtKXl2bBNV2XxgDVHkpziwgvTgEAiEAk5NiziItxSwPE1gpFlFICN2BKHEV6B3XT91Rx+ekQTY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25414,"size":8393,"noattachment":false,"key":"/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.1.2.tgz"},"main":"./lib/XMLHttpRequest.js","engines":{"node":">=0.4.0"},"gitHead":"bfa05a48d89da1b13b570de4cc114a6bf0fab3ba","scripts":{"test":"cd ./tests && node test-constants.js && node test-events.js && node test-exceptions.js && node test-headers.js && node test-redirect-302.js && node test-redirect-303.js && node test-redirect-307.js && node test-request-methods.js && node test-request-protocols-txt-data.js && node test-request-protocols-binary-data.js && node test-sync-response.js && node test-utf8-tearing.js && node test-keepalive.js"},"_npmUser":{"name":"mjwwit","email":"mjwwit@gmail.com"},"licenses":[{"url":"http://creativecommons.org/licenses/MIT/","type":"MIT"}],"repository":{"url":"git://github.com/mjwwit/node-XMLHttpRequest.git","type":"git"},"_npmVersion":"10.8.2","description":"XMLHttpRequest for Node","directories":{"lib":"./lib","example":"./example"},"_nodeVersion":"22.7.0","dependencies":{},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/xmlhttprequest-ssl_2.1.2_1729713412197_0.6577024899985722","host":"s3://npm-registry-packages"},"readme":"# node-XMLHttpRequest #\n\nFork of [node-XMLHttpRequest](https://github.com/driverdan/node-XMLHttpRequest) by [driverdan](http://driverdan.com). Forked and published to npm because a [pull request](https://github.com/rase-/node-XMLHttpRequest/commit/a6b6f296e0a8278165c2d0270d9840b54d5eeadd) is not being created and merged. Changes made by [rase-](https://github.com/rase-/node-XMLHttpRequest/tree/add/ssl-support) are needed for [engine.io-client](https://github.com/Automattic/engine.io-client).\n\n## Usage ## \n\nHere's how to include the module in your project and use as the browser-based\nXHR object.\n\n\tvar XMLHttpRequest = require(\"xmlhttprequest-ssl\").XMLHttpRequest;\n\tvar xhr = new XMLHttpRequest();\n\nNote: use the lowercase string \"xmlhttprequest-ssl\" in your require(). On\ncase-sensitive systems (eg Linux) using uppercase letters won't work.\n\n### Non-standard features ###\n\nNon-standard options for this module are passed through the `XMLHttpRequest` constructor. The following options control `https:` SSL requests: `ca`, `cert`, `ciphers`, `key`, `passphrase`, `pfx`, and `rejectUnauthorized`. You can find their functionality in the [Node.js docs](https://nodejs.org/api/https.html#httpsrequestoptions-callback).\n\nAdditionally, the `agent` option allows you to specify a [Node.js Agent](https://nodejs.org/api/https.html#class-httpsagent) instance, allowing connection reuse.\n\nTo prevent a process from not exiting naturally because a request socket from this module is still open, you can set `autoUnref` to a truthy value.\n\nThis module allows control over the maximum number of redirects that are followed. You can set the `maxRedirects` option to do this. The default number is 20.\n\nUsing the `allowFileSystemResources` option allows you to control access to the local filesystem through the `file:` protocol.\n\nThe `origin` option allows you to set a base URL for the request. The resulting request URL will be constructed as follows `new URL(url, origin)`.\n\n# Original README #\n\n## Versions ##\n\nVersion 2.0.0 introduces a potentially breaking change concerning local file system requests.\nIf these requests fail this library now returns the `errno` (or -1) as the response status code instead of\nreturning status code 0.\n\nPrior to 1.4.0 version numbers were arbitrary. From 1.4.0 on they conform to\nthe standard major.minor.bugfix. 1.x shouldn't necessarily be considered\nstable just because it's above 0.x.\n\nSince the XMLHttpRequest API is stable this library's API is stable as\nwell. Major version numbers indicate significant core code changes.\nMinor versions indicate minor core code changes or better conformity to\nthe W3C spec.\n\n## License ##\n\nMIT license. See LICENSE for full details.\n\n## Supports ##\n\n* Async and synchronous requests\n* GET, POST, PUT, and DELETE requests\n* All spec methods (open, send, abort, getRequestHeader,\n  getAllRequestHeaders, event methods)\n* Requests to all domains\n\n## Known Issues / Missing Features ##\n\nFor a list of open issues or to report your own visit the [github issues\npage](https://github.com/driverdan/node-XMLHttpRequest/issues).\n\n* Local file access may have unexpected results for non-UTF8 files\n* Synchronous requests don't set headers properly\n* Synchronous requests freeze node while waiting for response (But that's what you want, right? Stick with async!).\n* Some events are missing, such as abort\n* getRequestHeader is case-sensitive\n* Cookies aren't persisted between requests\n* Missing XML support\n* Missing basic auth\n","publish_time":1729713412430,"maintainers":[{"name":"mjwwit","email":"mjwwit@gmail.com"}],"_cnpm_publish_time":1729713412430,"dist-tags":{"latest":"4.0.0"}}