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

                            主站蜘蛛池模板: 国产精品国产三级国产aⅴ入口 | 亚洲免费人成在线视频观看 | 欧美三区视频 | 久久亚洲国产精品 | 欧美www在线| www.亚洲一区二区三区 | 久久成人国产精品 | 久久久久国产一区二区三区四区 | 宅女噜噜66国产精品观看免费 | 成人网av| 高清免费av | 国产精华一区 | 欧美日产国产成人免费图片 | 久久久99国产精品免费 | 在线观看黄色电影 | 日韩国产黄色片 | www.亚洲 | 久久久网 | 亚洲一区二区在线 | 亚洲a毛片| 一区二区三区免费 | 北条麻妃99精品青青久久主播 | 欧美一级淫片免费视频黄 | 国产高清在线 | 亚洲高清一区二区三区 | 黄色在线免费观看 | 91精品国产91久久久久久吃药 | 国产资源在线视频 | 亚洲a视频 | 久久久久久久久国产成人免费 | 亚洲 中文 欧美 日韩 在线观看 | 久草成人 | 伊人网在线综合 | 日韩成人久久 | 久久国产精品一区二区三区 | 久久99精品久久久久婷婷 | 久久香焦 | 美女日批免费视频 | 欧美h| 日本免费一区二区三区 | 成人国产在线观看 |