您有个知识币

【退出】

    php curl实用案例,支持https

    php curl实用案例,同时支持https,可以在项目中使用的代码: function GetUrlInfo($url, $par=array(), $method='get'){ $strPar = ''; if(!empty($par)){ $strPar = http_build_query($para); } $ch = curl_init(); if($method != 'post'){ if(!empty($strPar)){ $url.="?".$strPar; } curl_setopt($ch, CURLOPT_URL, $url); }else{ curl_setopt($ch, CURLOPT_U...阅读全文
    作者:黑♂白 | 分类: web后端 | 阅读:10 |