【发布时间】:2017-03-15 13:39:50
【问题描述】:
我需要在 onBeforeResponse 方法中发送 http 请求。
我正在尝试在 CustomRules.js 中添加此方法
static function httpGet(theUrl){
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", theUrl, false );
xmlHttp.send( null );
return xmlHttp.responseText;
}
但我有一个错误
"XMLHttpRequest" is not defined有什么方法可以从提琴手脚本规则发送http请求?
【问题讨论】:
标签: javascript xmlhttprequest fiddler