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

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                [![](http://static.phpgrace.com/statics/images/downcode.png)](http://www.phpgrace.com/tools/download/8.html) # curl通信類 ![未命名-1.png](http://www.phpgrace.com/statics/images/201804/1524193930506609.png "1524193868890240.png") ## **功能介紹** curl通訊類,包含 get、post 方式。 ## **部署說明** >將?curl.php?文件直接部署到?phpGrace/tools/?文件夾下 ## **使用演示 - GET** ~~~ <?php class?indexController?extends?grace{ ????public?function?index(){ ????????$curl?=?new?phpGrace\tools\curl(); ????????$res??=?$curl->get('http://api.hcoder.net'); ????????//返回結果 ????????echo?$res; ????} } ~~~ ## **使用演示 - POST** ~~~ <?php class?indexController?extends?grace{ ????public?function?index(){ ????????$curl?=?new?phpGrace\tools\curl(); ????????//post?數據 ????????$data?=?array('name'?=>?'grace',?'age'?=>?10); ????????$res??=?$curl->post('http://api.hcoder.net',?$data); ????????//curl?狀態 ????????p($curl->http_status); ????????//傳輸時間毫秒 ????????echo?$curl->speed; ????????//返回結果 ????????echo?$res; ????} } ~~~ ## **獲取 curl 資源對象** curl 資源對象保存在 phpGrace curl對象的?curlHandle 屬性,您可以獲取它并繼續完成其他功能: ~~~ $curlo?=?$curl->curlHandle; ~~~
                  <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>

                              哎呀哎呀视频在线观看