Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

call URL many times

for (i = 0; i < 2500; i++){
    var xhttp = new XMLHttpRequest();
    xhttp.onreadystatechange = function() {
        if (this.readyState == 4 && this.status == 200) {
            //do Something
        }
    };
    xhttp.open("GET", "http://localhost:63091/api/CustomerSite/GetSiteList?accessToken=123456789", true);
    xhttp.send();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #call #URL #times
ADD COMMENT
Topic
Name
7+1 =