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

Until yesterday, it worked. Today, it has stopped working, and returns this error: ```js function httpGet(url){ var xmlHttp = new XMLHttpRequest(); xmlHttp.open( "GET", url, false ); xmlHttp.send(null); return xmlHttp.responseText; }...

https://github.com/D-Pow/MockRequests/issues/15?utm_source=pocket_mylist#issuecomment-888685996 ``` global.fetch = require('node-fetch'); global.Headers = fetch.Headers; global.XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; MR = require('mock-requests'); global.axios = require('axios'); MR.setMockUrlResponse('http://localhost:1111/t', { mockExample: 1 }); axios.get('http://localhost:1111/t').then(resp => console.log(resp)); // Error "Cannot read property...

Hello. I am trying to extract the xml code from a youtube channel, but it generates this error. How can I solve it? The error is: Error in HTTP request,...

There are several changes that are not updated in the npm version, including the bug fixes for "getRequestHeader" and the IPv6 issue. Could you please publish the latest version of...

Trying to get this file with your nodejs xmlhttprequest ``` $ curl -X GET -I http://localhost/test/foo.bin HTTP/1.1 200 OK Date: Wed, 20 Jun 2018 11:58:51 GMT Server: Apache/2.4.33 (Unix) Last-Modified:...

I tried to generate a node from the following code and I am getting an error "xmLHttpRequest is not defined" whenever the code is run (as a google cloud function)...

([Related issue with Axios as well](https://github.com/axios/axios/issues/3116)) Adding `"xmlhttprequest": "^1.8.0",` with axios causes unexpected behavior with json responses. `response.data` is undefined. Is there a default setting that can be set?

https://github.com/driverdan/node-XMLHttpRequest/blob/97966e4ca1c9f2cc5574d8775cbdacebfec75455/lib/XMLHttpRequest.js#L369 Currently, it appears that it assumes content-type is written as "Content-Type".

When I fetch an external xml feed with encoding iso-8859-1 with vanilla javascript, the characters all works fine. But with this package, it will replace letters with apostrophe with question...