xmlhttprequest Questions
9
I have a classic ASP website running on a Windows Server 2012 box. One page makes a HTTP request to another application over https using code like this:
Sub ShopXML4http(url, inStr, outStr, method...
Posterity asked 25/1, 2014 at 19:10
5
Solved
Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure resource ''. This request has been blocked; the content must be served over HTTPS.
Lull asked 30/5, 2021 at 19:50
5
Issue
I have a page where users can upload files with the help of FormData and an XMLHttpRequest.
Uploading the file works fine. But the upload.onprogress is only working when uploading from an HT...
Fonville asked 21/4, 2019 at 13:7
7
I have a page that sends an XHR request when a form is submitted and I would like to get Chrome to break when it receives a response. It seems like the best way to accomplish this would be if Chrom...
Plum asked 14/7, 2010 at 19:24
10
Solved
What is a good way to find out how long a particular $.ajax() request took?
I would like to get this information and then display it on the page somewhere.
ANSWER??::::
I'm new to javascript, t...
Gelatinous asked 17/8, 2010 at 0:41
9
Solved
I am trying to modify the responseText received by a function that I cannot modify. This function creates a XMLHttpRequest that I can attach to, but I have been unable to "wrap" the responseText in...
Legitimate asked 19/10, 2014 at 4:34
4
Solved
Trying to use a pure JS approach to check if I have a valid JS image url. I am getting a warning that XMLHttpRequest is deprecated. What is a better way to do this?
urlExists(url) {
const http = ...
Triplicity asked 7/12, 2016 at 1:49
3
Solved
Is it possible to do a HTTP Head request solely using an XMLHTTPRequest in JavaScript?
My motivation is to conserve bandwidth.
If not, is it possible to fake it?
Granger asked 2/12, 2008 at 11:2
24
Solved
I’m trying to implemennt a simple text file reader by creating a function that takes in the file’s path and converts each line of text into a char array, but it’s not working.
function readTextFile...
Eatage asked 21/1, 2013 at 20:14
9
I have the url to a possibly large (100+ Mb) file, how do I save it in a local directory using fetch?
I looked around but there don't seem to be a lot of resources/tutorials on how to do this.
Ephraim asked 3/6, 2016 at 12:40
7
Solved
Like many others, my website is using jQuery. When I open the developer tools, I see a warning that says that XMLHTTPRequest is
deprecated because of its detrimental effects to the end user's e...
Recalescence asked 2/1, 2015 at 0:53
5
Solved
I am developing an application for my AppleTV. The App will read movies from an online website that hasn't developed any API for this kind of thing.
I use XMLHTTPRequest to get the different URLs ...
Child asked 15/2, 2017 at 22:0
2
Solved
Any idea why XMLHttpRequest with correct credentials in Pebble JS Framework fails basic authentication on Android but works in iOS?
Exactly the same code, along the lines of:
var req = new XMLHtt...
Wane asked 14/6, 2014 at 4:1
2
How to block requests from a certain URL using JavaScript? For example, the manual way to do so on chrome will be to open the inspect page, go to network and block from there. But I need to block r...
Expropriate asked 17/1, 2018 at 7:14
1
I have a react app (CRA) that is interfacing with an API Gateway. It checks the API, if there is an announcement, display the component.
My Cypress test is trying to intercept a page API call and r...
Product asked 16/4, 2020 at 3:34
8
Solved
Been trying with no luck to upload an image to S3 from React Native using pre-signed url. Here is my code:
generate pre-signed url in node:
const s3 = new aws.S3();
const s3Params = {
Bucket: b...
Subtraction asked 11/6, 2016 at 5:38
4
Solved
I'm aware that jQuery's ajax method cannot handle downloads, and I do not want to add a jQuery plugin to do this.
I want to know how to send POST data with XMLHttpRequest to download a file.
Here...
Occupier asked 28/3, 2014 at 22:12
35
Solved
Is there a way to allow multiple cross-domains using the Access-Control-Allow-Origin header?
I'm aware of the *, but it is too open. I really want to allow just a couple domains.
As an example, s...
Caucasoid asked 31/10, 2009 at 3:27
8
Solved
I’m using JSON.parse on a response that sometimes contains a 404 response. In the cases where it returns 404, is there a way to catch an exception and then execute some other code?
data = JSON.par...
Andersen asked 17/12, 2010 at 1:52
3
Solved
I'm trying to make a Chrome Extension which scrapes some details from Pull Requests on Github using the Fetch API, and then displays them elsewhere. I'm running into some problems when I try to use...
Erasmo asked 21/2, 2016 at 21:23
5
I have deployed my Backend/API server in a AWS EC2 instance, which is being loaded without SSL and the url is like, 'http://ec2-67-ap-southeast-3.compute.amazonaws.com'
And I have deployed my Reac...
Noncompliance asked 30/3, 2020 at 19:29
1
Solved
Is it possible to use the Streams API in JavaScript to implement the WebSockets protocol for a browser client (not in Node.JS)?
The built-in WebSocket class does not work for my needs because it do...
Wantage asked 16/6, 2023 at 13:3
5
Solved
Context
With Postman, I send the following fields in order to register a user in the db, to the URL http://mywebsite/register:
email
password
password_confirmation
name
According to the docum...
Becoming asked 10/3, 2021 at 10:41
2
Solved
I'm trying to POST an image (with Metadata) to Picasa Webalbums from within a Chrome-Extension. Note that a regular post with Content-Type image/xyz works, as I described here. However, I wish to i...
Jardine asked 24/11, 2011 at 20:39
4
Solved
On a server it can be useful to know that an incoming request is AJAX.
Most js libraries use XMLHttpRequest and so provide HTTP_X_REQUESTED_WITH: XMLHttpRequest, but neither Chrome's implementatio...
Digestive asked 12/11, 2015 at 0:18
© 2022 - 2024 — McMap. All rights reserved.