<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    jojo's blog--快樂憂傷都與你同在
    為夢想而來,為自由而生。 性情若水,風起水興,風息水止,故時而激蕩,時又清平……
    posts - 11,  comments - 30,  trackbacks - 0
    <?php
    /*
    * Created on Feb 12, 2008
    *
    * Donald J. Ankney
    * Academic Personnel Information Services
    * ankneyd@u.washington.edu
    *
    * Class is a REST webservice client
    * can use SSL
    *
    */


    class RestClient {
    public $certPath;
    public $keyPath;
    public $uriBase;

    // Method pulls the resource via curl and returns a string of the resource
    function getResource ($uri) {
    $ch = curl_init($this->uriBase.$uri);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    //TODO: VERIFYPEER is necessary for enterprise use, implement some rules around it
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    if ($this->keyPath AND $this->certPath) { // if cert/key attributes are set, use them
    curl_setopt($ch, CURLOPT_SSLCERT, $this->certPath);
    curl_setopt($ch, CURLOPT_SSLKEY, $this->keyPath);
    }

    $resource=curl_exec($ch);
    $info = curl_getinfo($ch);
    if ($info1 != '200') {
    //TODO: Better error handling
    return FALSE;
    };
    curl_close($ch);
    return $resource;
    }
    }

    $webQ = new RestClient;
    $webQ->uriBase = ';
    $webQ->certPath = '/Path/to/cert.pem';
    $webQ->keyPath = '/Path/to/key.pem';

    $result = $webQ->getResource("/survey/number");//Or whatever you need do construct to pull the data
    if ($result) {
    //Do something with the resource
    } else {
    //TODO: Better error handling
    echo "ERROR: http transfer problem";
    }

    ?>

    <2025年5月>
    27282930123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567

    常用鏈接

    留言簿(6)

    隨筆檔案

    文章分類

    文章檔案

    新聞分類

    新聞檔案

    相冊

    收藏夾

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 97在线视频免费公开观看| 美女黄频免费网站| 日韩免费高清大片在线| 国产V亚洲V天堂A无码| 两个人看的www高清免费视频| 久久夜色精品国产亚洲av| 好猛好深好爽好硬免费视频| 亚洲码国产精品高潮在线| 国产婷婷成人久久Av免费高清| 亚洲国产成人片在线观看| 久久免费高清视频| 亚洲欧洲校园自拍都市| 1000部拍拍拍18勿入免费凤凰福利| 亚洲国产成人久久| 国产高清在线免费| 日韩精品无码免费视频| 亚洲日韩小电影在线观看| 久久青草免费91线频观看不卡 | 亚洲自偷自偷图片| 美女内射无套日韩免费播放| 亚洲国产精品日韩在线观看| 成年人免费网站在线观看| 日韩少妇内射免费播放| 久久亚洲精品AB无码播放| www.黄色免费网站| 人妻仑刮八A级毛片免费看| 亚洲国产精品嫩草影院在线观看 | 亚洲精品无码久久| 亚洲另类激情专区小说图片| 免费人成毛片动漫在线播放| 亚洲一区二区三区在线网站| 日韩精品成人亚洲专区| 精品国产麻豆免费人成网站| 亚洲va成无码人在线观看| 免费看国产一级片| 国产精品免费看久久久| 亚洲AV无码一区二区三区电影| 亚洲自偷自偷图片| 在线观看人成网站深夜免费| 久艹视频在线免费观看| 黄色一级免费网站|