pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

<i id='uSzGn'><tr id='uSzGn'><dt id='uSzGn'><q id='uSzGn'><span id='uSzGn'><b id='uSzGn'><form id='uSzGn'><ins id='uSzGn'></ins><ul id='uSzGn'></ul><sub id='uSzGn'></sub></form><legend id='uSzGn'></legend><bdo id='uSzGn'><pre id='uSzGn'><center id='uSzGn'></center></pre></bdo></b><th id='uSzGn'></th></span></q></dt></tr></i><div class="9b77dhd" id='uSzGn'><tfoot id='uSzGn'></tfoot><dl id='uSzGn'><fieldset id='uSzGn'></fieldset></dl></div>

    • <bdo id='uSzGn'></bdo><ul id='uSzGn'></ul>

      <small id='uSzGn'></small><noframes id='uSzGn'>

      <tfoot id='uSzGn'></tfoot>

        <legend id='uSzGn'><style id='uSzGn'><dir id='uSzGn'><q id='uSzGn'></q></dir></style></legend>
      1. XHR HEAD 請求是否有可能不遵循重定向 (301 302)

        Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))

          • <bdo id='ti8dw'></bdo><ul id='ti8dw'></ul>

            <i id='ti8dw'><tr id='ti8dw'><dt id='ti8dw'><q id='ti8dw'><span id='ti8dw'><b id='ti8dw'><form id='ti8dw'><ins id='ti8dw'></ins><ul id='ti8dw'></ul><sub id='ti8dw'></sub></form><legend id='ti8dw'></legend><bdo id='ti8dw'><pre id='ti8dw'><center id='ti8dw'></center></pre></bdo></b><th id='ti8dw'></th></span></q></dt></tr></i><div class="ttlp777" id='ti8dw'><tfoot id='ti8dw'></tfoot><dl id='ti8dw'><fieldset id='ti8dw'></fieldset></dl></div>
              <tbody id='ti8dw'></tbody>
            <tfoot id='ti8dw'></tfoot>

            <small id='ti8dw'></small><noframes id='ti8dw'>

                <legend id='ti8dw'><style id='ti8dw'><dir id='ti8dw'><q id='ti8dw'></q></dir></style></legend>
                • 本文介紹了XHR HEAD 請求是否有可能不遵循重定向 (301 302)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  是否可以發送 xhr HTTP HEAD 請求以僅獲取第一個請求的標頭響應,而不像重定向一樣自動遵循 301、302?我只對獲取 url 的新位置感興趣.示例:

                  Is it possible to send an xhr HTTP HEAD request to only get header response for the first request and not automatically follow 301, 302 like redirects? I'm only interested in getting the new location of the url. Example:

                  var xhr = new XMLHttpRequest();
                  xhr.onreadystatechange = function(data) {
                      if (xhr.readyState == 4) {
                          if (xhr.status == 301 || xhr.status == 302) {
                              // Get new location url don't GET it
                          }
                      }
                  };
                  xhr.open('HEAD', url, true);
                  xhr.send();
                  

                  http://www.w3.org/TR/XMLHttpRequest/#infrastructure-for-the-send-method 似乎指定應遵循請求,有沒有辦法阻止它?

                  http://www.w3.org/TR/XMLHttpRequest/#infrastructure-for-the-send-method seems to specify that requests should be followed, is there a way to stop this?

                  推薦答案

                  沒有,這不是你可以阻止的暴露行為.

                  There isn't, this isn't exposed behavior you can stop.

                  這是因為 您已經鏈接的規范,指定的行為是 XmlHttpRequest 應該透明地遵循重定向...不幸的是,在幕后,而不是你可以阻止的方式.

                  It's because of the spec you linked already, the specified behavior is that XmlHttpRequest should transparently follow redirects...under the covers unfortunately, and not in a way you can prevent.

                  這種方式可以嘗試讓事情變得更容易,如果資源移動等...但是在設計和制定規范時,所有這些重定向服務都不存在.只是沒有強烈需要任何其他行為或能力來阻止它,我認為隨著網絡上的重定向越來越多,我們不會看到添加的能力,但誰知道每個瀏覽器何時會支持它.

                  It's this way to try and make things easier, if resources move, etc...but when it was designed and the spec laid out, all these redirection services weren't out there. There just wasn't a strong need for any other behavior or ability to prevent it, I think with as many redirects hitting the web not we'll see the ability added, but who knows when every browser would support it.

                  這篇關于XHR HEAD 請求是否有可能不遵循重定向 (301 302)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                  JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發技術分
                  NETWORK_ERROR: XMLHttpRequest Exception 101(NETWORK_ERROR:XMLHttpRequest 異常 101)
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                  Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)

                      <tfoot id='BcYQn'></tfoot>

                        <bdo id='BcYQn'></bdo><ul id='BcYQn'></ul>

                            <tbody id='BcYQn'></tbody>

                          <i id='BcYQn'><tr id='BcYQn'><dt id='BcYQn'><q id='BcYQn'><span id='BcYQn'><b id='BcYQn'><form id='BcYQn'><ins id='BcYQn'></ins><ul id='BcYQn'></ul><sub id='BcYQn'></sub></form><legend id='BcYQn'></legend><bdo id='BcYQn'><pre id='BcYQn'><center id='BcYQn'></center></pre></bdo></b><th id='BcYQn'></th></span></q></dt></tr></i><div class="57zzhbz" id='BcYQn'><tfoot id='BcYQn'></tfoot><dl id='BcYQn'><fieldset id='BcYQn'></fieldset></dl></div>
                            <legend id='BcYQn'><style id='BcYQn'><dir id='BcYQn'><q id='BcYQn'></q></dir></style></legend>

                            <small id='BcYQn'></small><noframes id='BcYQn'>

                            主站蜘蛛池模板: 成都软件开发_OA|ERP|CRM|管理系统定制开发_成都码邻蜀科技 | 美缝剂_美缝剂厂家_美缝剂加盟-地老板高端瓷砖美缝剂 | 烘干设备-热泵烘干机_广东雄贵能源设备有限公司 | 水性漆|墙面漆|木器家具漆|水漆涂料_晨阳水漆官网 | 包装机传感器-搅拌站传感器-山东称重传感器厂家-济南泰钦电气 | 葡萄酒灌装机-食用油灌装机-液体肥灌装设备厂家_青州惠联灌装机械 | 钢衬玻璃厂家,钢衬玻璃管道 -山东东兴扬防腐设备有限公司 | TwistDx恒温扩增-RAA等温-Jackson抗体-默瑞(上海)生物科技有限公司 | 铣刨料沥青破碎机-沥青再生料设备-RAP热再生混合料破碎筛分设备 -江苏锡宝重工 | 二手色谱仪器,十万分之一分析天平,蒸发光检测器,电位滴定仪-湖北捷岛科学仪器有限公司 | 等离子表面处理机-等离子表面活化机-真空等离子清洗机-深圳市东信高科自动化设备有限公司 | 细石混凝土泵_厂家_价格-烟台九达机械有限公司 | 新能源汽车电机定转子合装机 - 电机维修设备 - 睿望达 | 超声波分散机-均质机-萃取仪-超声波涂料分散设备-杭州精浩 | 洁净化验室净化工程_成都实验室装修设计施工_四川华锐净化公司 | 建筑资质代办-建筑资质转让找上海国信启航 | 焊管生产线_焊管机组_轧辊模具_焊管设备_焊管设备厂家_石家庄翔昱机械 | 新能源汽车教学设备厂家报价[汽车教学设备运营18年]-恒信教具 | 苏州教学设备-化工教学设备-环境工程教学模型|同科教仪 | 诺冠气动元件,诺冠电磁阀,海隆防爆阀,norgren气缸-山东锦隆自动化科技有限公司 | 收录网| 板框压滤机-隔膜压滤机-厢式压滤机生产厂家-禹州市君工机械设备有限公司 | 农业仪器网 - 中国自动化农业仪器信息交流平台 | 培训一点通 - 合肥驾校 - 合肥新亚驾校 - 合肥八一驾校 | 深圳公司注册-工商注册代理-注册公司流程和费用_护航财税 | 盐城网络公司_盐城网站优化_盐城网站建设_盐城市启晨网络科技有限公司 | 安全,主动,被动,柔性,山体滑坡,sns,钢丝绳,边坡,防护网,护栏网,围栏,栏杆,栅栏,厂家 - 护栏网防护网生产厂家 | 钢格板|镀锌钢格板|热镀锌钢格板|格栅板|钢格板|钢格栅板|热浸锌钢格板|平台钢格板|镀锌钢格栅板|热镀锌钢格栅板|平台钢格栅板|不锈钢钢格栅板 - 专业钢格板厂家 | 上海办公室装修公司_办公室设计_直营办公装修-羚志悦装 | 在线钠离子分析仪-硅酸根离子浓度测定仪-油液水分测定仪价格-北京时代新维测控设备有限公司 | 求是网 - 思想建党 理论强党 | 湖南档案密集架,智能,物证,移动,价格-湖南档案密集架厂家 | 吊篮式|移动式冷热冲击试验箱-二槽冷热冲击试验箱-广东科宝 | 手术室净化厂家_成都实验室装修公司_无尘车间施工单位_洁净室工程建设团队-四川华锐16年行业经验 | 氧氮氢联合测定仪-联测仪-氧氮氢元素分析仪-江苏品彦光电 | 动库网动库商城-体育用品专卖店:羽毛球,乒乓球拍,网球,户外装备,运动鞋,运动包,运动服饰专卖店-正品运动品网上商城动库商城网 - 动库商城 | 消泡剂-水处理消泡剂-涂料消泡剂-切削液消泡剂价格-东莞德丰消泡剂厂家 | 泰国试管婴儿_泰国第三代试管婴儿费用|成功率|医院—新生代海外医疗 | 别墅图纸超市|别墅设计图纸|农村房屋设计图|农村自建房|别墅设计图纸及效果图大全 | 菲希尔X射线测厚仪-菲希尔库伦法测厚仪-无锡骏展仪器有限责任公司 | 武汉高低温试验机-现货恒温恒湿试验箱-高低温湿热交变箱价格-湖北高天试验设备 |