src/CURL.php
public function post(string $url, $body, array $headers = []) {
        $c = $this->curlInit($url, $headers);
        curl_setopt($c, CURLOPT_POST, true);
        curl_setopt($c, CURLOPT_POSTFIELDS, $body);

        $r = curl_exec($c);
        curl_close($c);
        if (false === $r) {
            return false;
        }
        X::logger()->trace($r);

        return $this->parseHttpResponse($r);
    }
public function post(string $url, $body, array $headers = []) {
        $c = $this->curlInit($url, $headers);
        curl_setopt($c, CURLOPT_POST, true);
        curl_setopt($c, CURLOPT_POSTFIELDS, $body);

        $r = curl_exec($c);
        curl_close($c);
        if (false === $r) {
            return false;
        }
        X::logger()->trace($r);

        return $this->parseHttpResponse($r);
    }
public function post ( string $ url , $ body , array $ headers = [ ] ) { $ c = $ this -> curlInit ( $ url , $ headers ) ; curl_setopt ( $ c , CURLOPT_POST , true ) ; curl_setopt ( $ c , CURLOPT_POSTFIELDS , $ body ) ; $ r = curl_exec ( $ c ) ; curl_close ( $ c ) ; if ( false === $ r ) { return false ; } X :: logger ( ) -> trace ( $ r ) ; return $ this -> parseHttpResponse ( $ r ) ; }
@param string       $url
@param string|array $body
@param array        $headers

@return array|bool
@param string $url @param string|array $body @param array $headers