Skip to content

Tag: xmlhttprequest

Read response from HttpRequest in JavaScript

First, you can ignore that this is sending credentials in an unsafe manner. I’m supposed to handle that after. My problem is with reading the ‘response’ or ‘responseText’ from a HttpRequest to an API. I can see in the console the request is succesful and the response I want is th…

How to access XML POST request with node.js?

I making a web app with node.js.I have a API on /api/users/register that takes name and password.I want to sent a POST request to that adress with XMLHttpRequest.The request comes to the API but i cant figure out how to access name and password. I tried to access with req.body but it returns an empty list.Is …

Domo.js is trying to JSON.parse a png

While developing a custom app for my organization, I am trying to request the name and the avatar of the individual accessing the card. I am able to get the name of the individual without any problems, but when requesting the avatar image I get the following console error: Uncaught (in promise) Error: Invalid…

JS: XHR loads files (>50MB) immediatly

I’m making a internet speedtest app with Node.js. Everything works fine expect the download test. I normally download at 8Mbits/s but when I try XHR requesting a text file / image (about 256 MByte) at /public/chunk/somefile.txt for example, it downloads it within 1 second which is impossible. Then I che…