rendered paste body<html>
<head>
<script>
function sendTrace() {
var url = "http://localhost";
var req = false;
if (window.XMLHttpRequest) {
req = new XMLHttpRequest();
} else if (window.ActiveXObject) {
try {
req = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e) {
try {
var req = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e) {
}
}
}
req.open("GET", url, false);
req.send(req);
reshead = req.getAllResponseHeaders()
resbody = req.responseText;
document.form.restxt.value = reshead + "\n\n" + resbody;
}
</script>
<style type="text/css">
input { width:150px; height:30px; }
</style>
</head>
<body>
<form name="form">
<textarea name="restxt" cols="100" rows="45"></textarea>
<br />
<input type="button" onclick="sendTrace();"
name="sendtrace" value="magic!"></input>
</form>
</body>
</html>