1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| .....
<script type="text/javascript">
function httpPost()
{
var xmlHttp = null;
var theUrl = "http://Site1/Login.asp";
var param = "txtUser=toto&txtPwd=MonPass";
xmlHttp = new XMLHttpRequest();
xmlHttp.open("POST", theUrl, false);
xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlHttp.setRequestHeader("Content-length", param.length);
xmlHttp.setRequestHeader("Connection", "close");
xmlHttp.send(param);
var Source = xmlHttp.responseText;
}
</script>
</HEAD>
<BODY onload="httpPost()">
..... |
Partager