1. $fp = fsockopen('http://192.168.2.186',8289,$errno,$errstr,30);
    2. if(!$fp){
    3. return;
    4. }else{
    5. stream_set_blocking($fp,0);
    6. $http = "POST /sdkMethod/setIpMeetInfo.php?act=upload&uploadtype=2 HTTP/1.1\r\n";
    7. $http.="Host:192.168.2.186:8289\r\n";
    8. $http.="Content-type:application/json;charset=utf-8\r\n";
    9. $http .= "Content-length:".strlen($this->ipMeetInfo)."\r\n";
    10. $http.="Connection:Close\r\n\r\n";
    11. fwrite($fp,$http);
    12. fwrite($fp,'json数据');
    13. fclose($fp);
    14. }