久久久久久久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'>

                            主站蜘蛛池模板: 久久久99国产精品免费 | 欧美一区二区三区视频在线播放 | 国产精品久久久久久久久久免费看 | 亚洲欧美一区在线 | 91成人小视频| 天天拍天天操 | 亚洲欧美日韩久久 | 九色网址| 亚洲精品国产第一综合99久久 | 国产精品视频偷伦精品视频 | 国产在线视频一区 | 亚洲精品中文字幕中文字幕 | 中文字幕精品一区久久久久 | 久久免费看 | 精品国产一区二区三区久久久久久 | 久久免费精彩视频 | 亚洲综合99| 日韩国产三区 | 成人在线免费观看 | 韩国理论电影在线 | 一区二区三区四区国产 | 日韩av在线免费 | 成人免费视频网站在线观看 | 午夜国产羞羞视频免费网站 | 午夜丰满寂寞少妇精品 | 久久久久久国产精品mv | 亚洲电影一区二区三区 | 中国美女撒尿txxxxx视频 | 欧美456| www亚洲精品| 国产精品成av人在线视午夜片 | 男女羞羞视频网站 | 亚洲免费在线观看 | 午夜国产一级 | 男女久久久 | 精品国产视频 | 日本欧美在线观看视频 | 91精品久久 | 欧美黄色精品 | 亚洲欧美国产精品久久 | 一区二区三区在线免费观看 |