Python 使用webkit钩住ajax请求

Python 使用webkit钩住ajax请求,python,ajax,webkit,Python,Ajax,Webkit,例如: 如何使用webkit获取“ajax_link.php?id=1&t=xxxx”此链接及其url,以及下面的表单 <script> if(window.ActiveXObject) ajax=new ActiveXObject("Microsoft.XMLHTTP"); else ajax=new XMLHttpRequest(); ajax.open('post',"ajax_link.php?id=1&amp;t="+Math.random(),false); aj

例如: 如何使用webkit获取“ajax_link.php?id=1&t=xxxx”此链接及其url,以及下面的表单

<script>
if(window.ActiveXObject) ajax=new ActiveXObject("Microsoft.XMLHTTP");
else ajax=new XMLHttpRequest();
ajax.open('post',"ajax_link.php?id=1&amp;t="+Math.random(),false);
ajax.send();
document.write("ajax.ResponseText length:"+ajax.responseText.length);
</script>

如果(window.ActiveXObject)ajax=newactivexobject(“Microsoft.XMLHTTP”);
else ajax=new-XMLHttpRequest();
open('post',“ajax\u link.php?id=1&;t=“+Math.random(),false”);
ajax.send();
document.write(“ajax.ResponseText-length:+ajax.ResponseText.length”);