@@ -82,6 +82,32 @@ public static function DecryptDataWithPrivateKey($crypttext)
8282 return $ plain_text ;
8383 }
8484
85+ public static function HttpPostMethodSupportID ($ PostURL , $ PostData )
86+ {
87+ $ url = curl_init ($ PostURL );
88+ $ posttoken = json_encode ($ PostData );
89+ $ header = array (
90+ 'Content-Type:application/json ' ,
91+ 'X-KM-Api-Version:v-0.2.0 ' ,
92+ 'X-KM-IP-V4: ' . self ::get_client_ip (),
93+ 'X-KM-Client-Type:PC_WEB '
94+ );
95+
96+ curl_setopt ($ url , CURLOPT_HTTPHEADER , $ header );
97+ curl_setopt ($ url , CURLOPT_CUSTOMREQUEST , "POST " );
98+ curl_setopt ($ url , CURLOPT_RETURNTRANSFER , true );
99+ curl_setopt ($ url , CURLOPT_POSTFIELDS , $ posttoken );
100+ curl_setopt ($ url , CURLOPT_FOLLOWLOCATION , 1 );
101+ curl_setopt ($ url , CURLOPT_SSL_VERIFYHOST , 0 );
102+ curl_setopt ($ url , CURLOPT_SSL_VERIFYPEER , 0 );
103+ curl_setopt ($ url , CURLOPT_HTTPAUTH , CURLAUTH_BASIC );
104+
105+
106+ $ resultdata = curl_exec ($ url );
107+ curl_close ($ url );
108+ return $ resultdata ;
109+ }
110+
85111 public static function HttpPostMethod ($ PostURL , $ PostData )
86112 {
87113 $ url = curl_init ($ PostURL );
0 commit comments