我已经成功地使用 SMF.Net.WebClient 来访问一个网站。现在它在请求某个链接时有奇怪的行为:
var wc = new SMF.Net.WebClient({
URL : "http://www.invitro.ru/analizes/for-doctors/156/6671/?region_code=§ion_id=156&element_id=6671",
httpMethod : "GET",
requestHeaders : ["Content-Type: text/html"],
// When results are ready
onSyndicationSuccess : function (e) {
Pages.Webview.WV_Main.URL = this.responseText;
Pages.Webview.show();
},
timeoutInterval : 15
});
wc.run(true);
在这种情况下,onSyndicationSuccess responseText 始终为空,尽管 this.status = 200。
我什至用 Excel VBA 中的相同参数和 URL 尝试了 XmlHttpRequest。效果很好!
这里可能有什么问题?