<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ``` //有的第三方接口會對固定的服務器ip地址限制訪問,以下方法可以幫助你解決這個問題 function vlogin($url, $data) { // 啟動一個CURL會話 $curl = curl_init (); // 要訪問的地址 curl_setopt ( $curl, CURLOPT_URL, $url ); // 對認證證書來源的檢查 curl_setopt ( $curl, CURLOPT_SSL_VERIFYPEER, 0 ); // 從證書中檢查SSL加密算法是否存在 curl_setopt ( $curl, CURLOPT_SSL_VERIFYHOST, 2 ); // 模擬用戶使用的瀏覽器 curl_setopt ( $curl, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)" ); // 使用自動跳轉 @curl_setopt ( $curl, CURLOPT_FOLLOWLOCATION, 1 ); // 自動設置Referer curl_setopt ( $curl, CURLOPT_AUTOREFERER, 1 ); // 發送一個常規的Post請求 curl_setopt ( $curl, CURLOPT_POST, 1 ); // Post提交的數據包 curl_setopt ( $curl, CURLOPT_POSTFIELDS, $data ); // 存放Cookie信息的文件名稱 curl_setopt ( $curl, CURLOPT_COOKIEJAR, CMF_ROOT."aa.txt" ); // 讀取上面所儲存的Cookie信息 curl_setopt ( $curl, CURLOPT_COOKIEFILE, CMF_ROOT."aa.txt" ); // 設置超時限制防止死循環 curl_setopt ( $curl, CURLOPT_TIMEOUT, 30 ); // 顯示返回的Header區域內容 curl_setopt ( $curl, CURLOPT_HEADER, 0 ); // 獲取的信息以文件流的形式返回 curl_setopt ( $curl, CURLOPT_RETURNTRANSFER, 1 ); // 執行操作 $tmpInfo = curl_exec ( $curl ); if (curl_errno ( $curl )) { echo 'Errno' . curl_error ( $curl ); } // 關閉CURL會話 curl_close ( $curl ); // 返回數據 return $tmpInfo; } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看