Hi, I'm using GM 0.7.20080121.0.
In FF2.0.0.14, when a GM_xmlhttprequest fired and receive a 301/302
response, it seems that FF would try to resolve to a correct url.
But in FF3b5, when a GM_xmlhttprequest fired, it would receive 301/302
directly at the onload function.
For the time being, I have modified the script to something like:
GM_xmlhttprequest({
method:"GET",
url: url,
onload: function(response){
if(response.status == 302 || response.status == 303){ //moved
var loc = /Location: ([^\n]*)
\n/.exec(response.responseHeaders)[1];
GM_xmlhttprequest({method:"GET", url:loc,
onload:arguments.callee})
}
}
})
I just don't know whether it's the responsibility the script or
browser to resolve the redirection?