久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<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="qwawimqqmiuu" 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="qwawimqqmiuu" 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="qwawimqqmiuu" 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'>

                            主站蜘蛛池模板: 日韩av在线一区二区三区 | 911精品国产 | 久久成人国产 | 国产一区二区三区四区在线观看 | 一级毛片在线播放 | 97超碰站 | 精品视频一区二区三区在线观看 | 亚洲欧美日韩精品久久亚洲区 | h片在线播放 | 亚洲一区二区三区免费在线观看 | 欧美日韩精品 | 日韩一区二区在线视频 | 四虎影院久久 | 性国产丰满麻豆videosex | 国产精品一区二区三区久久 | 国产色| 天天躁日日躁性色aⅴ电影 免费在线观看成年人视频 国产欧美精品 | 日本精品一区二区 | 在线观看中文字幕av | 四季久久免费一区二区三区四区 | 黄色片在线看 | 在线免费观看视频你懂的 | 99福利在线观看 | 在线观看中文字幕dvd播放 | 日韩综合网| 久久久久久久久蜜桃 | 亚洲精品www | 青青草中文字幕 | 美女福利视频一区 | 99爱在线视频 | 毛片网站在线观看 | 久久精彩 | 精品入口麻豆88视频 | 99资源站 | 日韩一级免费电影 | 日韩欧美国产精品综合嫩v 一区中文字幕 | 超碰97人人人人人蜜桃 | 国产精品成av人在线视午夜片 | 中文字幕视频在线 | 成年人在线观看视频 | 狠狠色综合网站久久久久久久 |