User:Lupin/Opera bug

From Wikipedia, the free encyclopedia

Paste these urls into your address bar, one by one.

[edit] set it up (no output)

javascript:function grab(url){alert('getting '+url+'\n\nplease wait a moment');d=new XMLHttpRequest();d.open('GET',url,true);d.onreadystatechange=function(){if(d.readyState==4){alert(url+'\n\n'+d.responseText); alert(url+'\n\n'+d.getAllResponseHeaders());}};d.send(null);};

[edit] this works

javascript:grab('/w/index.php?title=Foo');

[edit] this gives gibberish

javascript:grab('/w/index.php?title=Foo&action=raw');

... but wget http://en.wikipedia.org/w/index.php?title=Foo&action=raw works perfectly.