So the backend (not under my control) requires a query string like this: But axios uses a JS object to send the request params: And obviously an object can’t have multiple fields with the same key. How can I send a request with multiple fields with the same key? Answer From the Request Config section of the axios documentation: To
Tag: request
How to decode nock recorded response
How to ad-hoc decode/uncompress the output produced by the nock recorder so we can see the response as text? I guess we do not understand if the response is gzipped and/or encoded The object works find when we load it into nock, and our tests are behaving as we expect. To see what the API produced, we are having to
JavaScript: Detect AJAX requests
Is there any way to detect global AJAX calls (particularly responses) on a web page with generic JavaScript (not with frameworks)? I’ve already reviewed the question “JavaScript detect an AJAX event”, here on StackOverflow, and tried patching in the accepted answer’s code into my application but it didn’t work. I’ve never done anything with AJAX before either so, I don’t