【发布时间】:2011-09-16 22:34:44
【问题描述】:
requrl_1 = "http://www.example.com/index.php";
requrl_2 = "http://www.example.com/redirect.php";
当我请求“requrl_1”时,没有问题。我得到回应。 “index.php”不是重定向页面。
但requrl_2是一个重定向页面,即重定向到另一个网站(例如:http://www.cnn.com)。
所以当我使用 XMLHttpRequest 请求时,我收到 exception 101 错误。
我必须请求“redirect.php”,没有其他解决方案。
我该怎么做?为什么我收到“exception 101”错误。
我正在为 google chrome 编写 Greasemonkey 用户脚本 脚本。
【问题讨论】:
-
这是同步请求吗?
标签: javascript google-chrome xmlhttprequest userscripts