QtWebKit uses an instance of QNetworkAccessManager you can replace with a customised one.
Sorry, I'm a beginner, do not know how to replace the instance, could help me?
------------------
even so I used to generate a Wire LOG apparently everything is normal.
The error occurred in the request line: 560
POST /testXhr.php?teste=13 HTTP/1.1
Accept: */*
Referer: http://localhost/testXhr.php
Origin: http://localhost
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows;) AppleWebKit/537.21 (KHTML, like Gecko) Safari/537.21
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 5
Connection: Keep-Alive
Accept-Encoding: gzip, deflate
Accept-Language: pt-BR,en,*
Host: localhost
ok=13
POST /testXhr.php?teste=13 HTTP/1.1
Accept: */*
Referer: http://localhost/testXhr.php
Origin: http://localhost
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows;) AppleWebKit/537.21 (KHTML, like Gecko) Safari/537.21
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 5
Connection: Keep-Alive
Accept-Encoding: gzip, deflate
Accept-Language: pt-BR,en,*
Host: localhost
ok=13
To copy to clipboard, switch view to plain text mode
Download the complete LOG:
http://www.mediafire.com/download/b9.../log-full.pcap
PrintScreen:
xhr-erro-on-qt.jpg
Javascript Code:
window.delta=0;
window.running = true;
function run(){
++window.delta;
$.ajax({
'type':'POST',
'url':"testXhr.php?teste="+(window.delta),
'data':'ok='+(window.delta),
'success':function(data){ },
'error':function(a,b,c){
console.log([a,b,c]);
window.running = false;
},
'complete':function(a,b){
console.log(b);
setTimeout(function(){
if(window.running){
run();
}
},500);
}
});
}
window.onload=run;
window.delta=0;
window.running = true;
function run(){
++window.delta;
$.ajax({
'type':'POST',
'url':"testXhr.php?teste="+(window.delta),
'data':'ok='+(window.delta),
'success':function(data){ },
'error':function(a,b,c){
console.log([a,b,c]);
window.running = false;
},
'complete':function(a,b){
console.log(b);
setTimeout(function(){
if(window.running){
run();
}
},500);
}
});
}
window.onload=run;
To copy to clipboard, switch view to plain text mode
Please help me with this.
Bookmarks