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

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

      1. <i id='A4slW'><tr id='A4slW'><dt id='A4slW'><q id='A4slW'><span id='A4slW'><b id='A4slW'><form id='A4slW'><ins id='A4slW'></ins><ul id='A4slW'></ul><sub id='A4slW'></sub></form><legend id='A4slW'></legend><bdo id='A4slW'><pre id='A4slW'><center id='A4slW'></center></pre></bdo></b><th id='A4slW'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='A4slW'><tfoot id='A4slW'></tfoot><dl id='A4slW'><fieldset id='A4slW'></fieldset></dl></div>

        • <bdo id='A4slW'></bdo><ul id='A4slW'></ul>
        <tfoot id='A4slW'></tfoot>

        <legend id='A4slW'><style id='A4slW'><dir id='A4slW'><q id='A4slW'></q></dir></style></legend>

        xmlhttprequest 狀態 302 的問題

        Problems with xmlhttprequest status 302(xmlhttprequest 狀態 302 的問題)

          <tbody id='pd01r'></tbody>
      2. <small id='pd01r'></small><noframes id='pd01r'>

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

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

                  <legend id='pd01r'><style id='pd01r'><dir id='pd01r'><q id='pd01r'></q></dir></style></legend><tfoot id='pd01r'></tfoot>
                • 本文介紹了xmlhttprequest 狀態 302 的問題的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在嘗試獲取鏈接 megaupload 中的真實路徑,但總是這樣,但這不起作用.

                  I am trying to get real path in link megaupload but always but this dont work.

                  function getRealURL(){
                  
                      var st = new String(""); 
                      var req = new XMLHttpRequest();
                      req.open("GET","http://www.megaupload.com/?d=6CKP1MVJ",true);
                      req.send(null);
                      req.send(null);
                      req.onreadystatechange = function (aEvt) {
                       if (req.readyState == 4) {
                          if(req.status == 302){
                            //SUCESSO
                             st = req.responseText;
                          }
                        }
                      };//funcao
                  
                      element.getElementById("id").setAttribute("value", st);
                  
                  }
                  

                  我需要這個鏈接:

                  Redirect to: http://www534.megaupload.com/files/c2c36829bc392692525f5b7b3d9d81dd/Coldplay - Warning Sign.mp3
                  

                  插入這個:

                  http://www.megaupload.com/?d=6CKP1MVJ
                  

                  推薦答案

                  XMLHttpRequest 默認自動跟隨重定向,因此您看不到 302 響應.您需要將 nsIHttpChannel.redirectionLimit 屬性設置為零以防止它:

                  XMLHttpRequest follows the redirect automatically by default so you don't see the 302 response. You need to set nsIHttpChannel.redirectionLimit property to zero to prevent it:

                  req.open("GET","http://www.megaupload.com/?d=6CKP1MVJ",true);
                  req.channel.QueryInterface(Components.interfaces.nsIHttpChannel).redirectionLimit = 0;
                  req.send(null);
                  

                  并不是說您在此處使用的鏈接會重定向到任何地方,但這是一般方法.順便說一句,您應該查看 req.getResponseHeader("Location"),而不是查看重定向的響應文本.

                  Not that the link you use here redirects anywhere but this is the general approach. Btw, instead of looking at the response text for redirects you should look at req.getResponseHeader("Location").

                  這篇關于xmlhttprequest 狀態 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屋-程序員軟件開發技術分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                  Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)
                    <tbody id='4Cg4t'></tbody>

                  <small id='4Cg4t'></small><noframes id='4Cg4t'>

                  • <tfoot id='4Cg4t'></tfoot>

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

                      <bdo id='4Cg4t'></bdo><ul id='4Cg4t'></ul>
                      <legend id='4Cg4t'><style id='4Cg4t'><dir id='4Cg4t'><q id='4Cg4t'></q></dir></style></legend>

                          • 主站蜘蛛池模板: 久久这里只有精品首页 | www.国产精品| 久久久入口 | 插插宗合网 | 黄色av观看 | 国产精品123区 | 欧美日韩成人影院 | 欧美日韩成人在线 | www.国产.com| 亚洲aⅴ| 亚洲天堂中文字幕 | 日韩欧美中文字幕在线观看 | 成人在线视频免费播放 | 亚洲欧美精品国产一级在线 | 亚洲免费婷婷 | 一级做a爰片久久毛片 | 欧美a在线看 | 国产高清视频在线 | 日韩成人在线视频 | 青青草av在线播放 | 亚洲精品久久久一区二区三区 | 成人av播放| 婷婷色在线 | 黄色大片在线 | 久草新在线 | 国产精品一区二区三区在线 | 欧美在线一区二区三区 | 日韩欧美在线不卡 | 精品日本中文字幕 | 久久久久久久久国产成人免费 | 欧区一欧区二欧区三免费 | 欧美日韩综合一区 | 在线看av的网址 | 国产视频二区 | 九七午夜剧场福利写真 | 一区在线视频 | 成人免费在线 | 国产免费播放视频 | 久久精品1| 一级电影免费看 | 国产日韩精品在线 |