您的位置:首页 > 理论基础 > 计算机网络

php post 数据 HttpClient

2017-10-10 16:49 501 查看
function ttt() {

  
   
 $client = new HttpClient ( 'pp.loc' );

  
   
 $client->post (
'/admin/mmstest/kkk', array ('username' => 'Simon',
'password' => 'ducks' ) );

  
   
 $pageContents =
$client->getContent ();

  
   
 echo $pageContents;

  
   
 exit;

    }

    function
kkk() {

   
    echo
7777;

   
    exit;

   
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: