node-XMLHttpRequest icon indicating copy to clipboard operation
node-XMLHttpRequest copied to clipboard

XMLHttpRequest for node.js

Results 103 node-XMLHttpRequest issues
Sort by recently updated
recently updated
newest added

Some components/frameworks work with Content-type instead of Content-Type

It adds a dependency to xmldom in order to parse xml and set responseXML.

https://developer.mozilla.org/En/XMLHttpRequest/Using_XMLHttpRequest#Receiving_binary_data_in_older_browsers documents using: ``` req.overrideMimeType('text/plain; charset=x-user-defined'); ``` as a way to force web browsers to not treat the returned data as utf-8. This is useful if you are doing something...

Hi hi, since response headers are not always lowercased, this PR allows getResponseHeader to be used in those cases.

`this.abort` has always been called whenever `.open` is called https://github.com/driverdan/node-XMLHttpRequest/blob/554280a7c509c1ce4d7ad9516b46d182739e8026/lib/XMLHttpRequest.js#L157 More recently `this.abort` was changed to emit the `abort` event. A side effect being that open always causes an abort,...

This simple example ``` js XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest; xhr = new XMLHttpRequest(); xhr.open('GET', 'https://github.com'); xhr.onreadystatechange = function (event) { console.log(event); }; xhr.send(); ``` outputs ``` undefined undefined ... undefined ```...

This is a work-around for issue #27 (Sync requests via jQuery fail).

Thanks for the great work. What's your schedule for version 2 with xhr level 2 support?

The default value of `*/*` for the `Accept` header can cause undesirable behavior. For example, I am dealing with an API that can serve XML or JSON, but I cannot...