Wed Feb 13 2019
Copied to clipboard! Copy reply
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
  
  if (xhr.readyState === 4) {
    console.log('xhr status: ', xhr.status)
    console.log('xhr readyState: ', xhr.readyState)
    console.log('xhr response: ', xhr.response)
    console.log('xhr responseURL: ', xhr.responseURL)
    console.log('xhr responseType: ', xhr.responseType)
    console.log('xhr statusText: ', xhr.statusText)
    
    console.log('xhr: ',xhr.responseText)  
    console.log(xhr)
  }
}
xhr.open('GET', 'https://www.rosettastone.com/gils?_=' + new Date().getTime(), true);
xhr.setRequestHeader("Accept", "*/*");
xhr.setRequestHeader("Cache-Control", "no-cache, no-store, must-revalidate");
xhr.send(null);

jQuery.get('https://www.rosettastone.com/gils', function(data) {
  console.log(data)
})

      https://secure.stg.rosettastone.com/us_en_store_view/freetrial/web/add/sku/91353/category_id/ENG?pc=webbill_12M



function reqListener () {
  console.log(this.responseText);
}

var oReq = new XMLHttpRequest();
oReq.addEventListener("load", reqListener);
oReq.open("GET", "https://www.rosettastone.com/gils");
oReq.setRequestHeader("Accept", "*/*");
oReq.send();


----- BAD ---------

>> REQUEST GILS
  Provisional headers are shown
  Referer:https://www.rosettastone.com/freetrial/
  User-Agent:Mozilla/5.0 (iPad; CPU OS 7_0_4 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11B554a Safari/9537.53

>> RESPONSE GILS
  Access-Control-Allow-Origin:*
  Cache-Control:max-age=604800
  Connection:keep-alive
  Content-Length:178
  Content-Type:text/html
  Date:Wed, 13 Feb 2019 18:02:28 GMT
  Location:https://www.rosettastone.com/gils/IE
  Server:nginx
  X-GI:IE


>> REQUST CC
  Provisional headers are shown
  Accept:*/*
  Accept-Encoding:gzip, deflate
  Accept-Language:en-us
  Referer:https://www.rosettastone.com/freetrial/
  User-Agent:Mozilla/5.0 (iPad; CPU OS 7_0_4 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11B554a Safari/9537.53

>> RESPONSE CC
  Access-Control-Allow-Origin:*
  Connection:keep-alive
  Content-Length:0
  Content-Type:application/octet-stream
  Date:Wed, 13 Feb 2019 18:08:11 GMT
  Server:nginx
  X-GI:IE



----- GOOD -----

>> REQUEST GILS
  Provisional headers are shown
  Accept:*/*
  Referer:https://www.rosettastone.com/freetrial/
  User-Agent:Mozilla/5.0 (iPad; CPU OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1


>> RESPONSE GILS
  Access-Control-Allow-Origin:*
  Date:Wed, 13 Feb 2019 18:11:22 GMT
  Location:https://www.rosettastone.com/gils/US


>> REQUST CC
  Provisional headers are shown
  Accept:*/*
  Accept-Encoding:br, gzip, deflate
  Accept-Language:en-us
  Referer:https://www.rosettastone.com/freetrial/
  User-Agent:Mozilla/5.0 (iPad; CPU OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1

>> RESPONSE CC