original_string: public static function post($url, array $data = [], array $headers = [])
      {
          // $headers = [ 'Content-Type: application/json' ];
  
          $ch = curl_init();
  
          curl_setopt($ch, CURLOPT_URL, $url);
          curl_setopt($ch, CURLOPT_POST, true);
          curl_setopt($ch, CURLOPT_POSTFIELDS, $data); // 发送数据
          curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
          curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  
          // 执行HTTP请求
          return self::execute($ch);
      }
code: public static function post($url, array $data = [], array $headers = [])
      {
          // $headers = [ 'Content-Type: application/json' ];
  
          $ch = curl_init();
  
          curl_setopt($ch, CURLOPT_URL, $url);
          curl_setopt($ch, CURLOPT_POST, true);
          curl_setopt($ch, CURLOPT_POSTFIELDS, $data); // 发送数据
          curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
          curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  
          // 执行HTTP请求
          return self::execute($ch);
      }
code_tokens: public static function post ( $ url , array $ data = [ ] , array $ headers = [ ] ) { // $headers = [ 'Content-Type: application/json' ]; $ ch = curl_init ( ) ; curl_setopt ( $ ch , CURLOPT_URL , $ url ) ; curl_setopt ( $ ch , CURLOPT_POST , true ) ; curl_setopt ( $ ch , CURLOPT_POSTFIELDS , $ data ) ; // 发送数据 curl_setopt ( $ ch , CURLOPT_HTTPHEADER , $ headers ) ; curl_setopt ( $ ch , CURLOPT_RETURNTRANSFER , true ) ; // 执行HTTP请求 return self :: execute ( $ ch ) ; }
docstring: send POST request
  @param string $url submit url
  @param array|string $data post data. array: form data, string: json data
  @param array $headers HEADER info
  @return string
docstring_tokens: send POST request