Update:
Not sleeped yet
I was analyzing again the first request (a index search page) “busca?termo=value” in chrome network and I seem that they have a token, I just done updated my code to parse token but still not showing results. In fact, this was a problem but still not the reason not to load the results.
The token comes in response body of first request
function buscar() {
var token = '&t=xJe4LVGixZQsStwUMMah';
if (!$("#form-busca-indice").valid()) {
return;
}
$("#resultados").html("");
$(".loading-busca").show();
$.get(springUrl + "busca/resultado", $("#form-busca-indice").serialize() + getFiltros() + token, exibirResultado);
window.history.replaceState({termo: $("#termo").val()}, document.title, "?termo="+$("#termo").val()+getFiltros());
}
$('.no-collapsable').on('click', function (e) {
e.stopPropagation();
});
And analyzing again initiators from the "resultado?=values&some&data” (the result page)
I found this:
(function inject() {
var open = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function () {
this.requestMethod = arguments[0];
open.apply(this, arguments);
};
var send = XMLHttpRequest.prototype.send;
XMLHttpRequest.prototype.send = function () {
var onreadystatechange = this.onreadystatechange;
this.onreadystatechange = function () {
function GenerateQuickId() {
var randomStrId = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
return randomStrId.substring(0, 22);
}
try {
if (this.readyState === 4) {
var id = 'detector';
var mes = {
posdMessageId: 'PANELOS_MESSAGE',
posdHash: GenerateQuickId(),
type: 'VIDEO_XHR_CANDIDATE',
from: id,
to: id.substring(0, id.length - 2),
content: {
requestMethod: this.requestMethod,
url: this.responseURL,
type: this.getResponseHeader('content-type'),
content: this.response
}
};
window.postMessage(mes, '*');
}
} catch (e) {}
if (onreadystatechange) {
return onreadystatechange.apply(this, arguments);
}
};
return send.apply(this, arguments);
};
})();
I can’t wait to be answered by ruri