ClassCMS

网络请求

C('cms:common:send',$url,$data=array(),$post=false,$timeout=0);

GET请求

$url='http://123.com';
C('cms:common:send',$url);

$timeout=5;//请求过期时间
C('cms:common:send',$url,false,false,$timeout);

POST请求

$url='http://123.com';
$data=array('name'=>'ClassCMS','age'=>1);
C('cms:common:send',$url,$data,true);

$timeout=5;//请求过期时间
C('cms:common:send',$url,$data,true,$timeout);