public function doPostRequest(
      string $url,
      array $data,
      array $headers = [],
      bool $closeConnection = true
    ) {
        $this->setUrl($url)
            ->setPostMethod()
            ->setPostFields($data)
            ->setMustReturnTransfer()
            ->setHttpHeader($headers)
            ->execute(true, $closeConnection);
        $this->_call($this->callback ?? function (FluentCurl $instance) {
        }, $this);

        return $this;
    }
public function doPostRequest(
      string $url,
      array $data,
      array $headers = [],
      bool $closeConnection = true
    ) {
        $this->setUrl($url)
            ->setPostMethod()
            ->setPostFields($data)
            ->setMustReturnTransfer()
            ->setHttpHeader($headers)
            ->execute(true, $closeConnection);
        $this->_call($this->callback ?? function (FluentCurl $instance) {
        }, $this);

        return $this;
    }
public function doPostRequest ( string $ url , array $ data , array $ headers = [ ] , bool $ closeConnection = true ) { $ this -> setUrl ( $ url ) -> setPostMethod ( ) -> setPostFields ( $ data ) -> setMustReturnTransfer ( ) -> setHttpHeader ( $ headers ) -> execute ( true , $ closeConnection ) ; $ this -> _call ( $ this -> callback ?? function ( FluentCurl $ instance ) { } , $ this ) ; return $ this ; }
Wraps all the post functionality into a single method.

@param string $url
@param array  $data
@param array  $headers
Wraps all the post functionality into a single method .