Model/Apiconnector/Rest.php
private function executePut($ch)
    {
        if (!is_string($this->requestBody)) {
            $this->buildPostBody();
        }

        $this->requestLength = strlen($this->requestBody);
        $fh = fopen('php://memory', 'rw');
        fwrite($fh, $this->requestBody);
        rewind($fh);

        curl_setopt($ch, CURLOPT_INFILE, $fh);
        curl_setopt($ch, CURLOPT_INFILESIZE, $this->requestLength);
        curl_setopt($ch, CURLOPT_PUT, true);

        $this->doExecute($ch);

        fclose($fh);
    }
private function executePut($ch)
    {
        if (!is_string($this->requestBody)) {
            $this->buildPostBody();
        }

        $this->requestLength = strlen($this->requestBody);
        $fh = fopen('php://memory', 'rw');
        fwrite($fh, $this->requestBody);
        rewind($fh);

        curl_setopt($ch, CURLOPT_INFILE, $fh);
        curl_setopt($ch, CURLOPT_INFILESIZE, $this->requestLength);
        curl_setopt($ch, CURLOPT_PUT, true);

        $this->doExecute($ch);

        fclose($fh);
    }
private function executePut ( $ ch ) { if ( ! is_string ( $ this -> requestBody ) ) { $ this -> buildPostBody ( ) ; } $ this -> requestLength = strlen ( $ this -> requestBody ) ; $ fh = fopen ( 'php://memory' , 'rw' ) ; fwrite ( $ fh , $ this -> requestBody ) ; rewind ( $ fh ) ; curl_setopt ( $ ch , CURLOPT_INFILE , $ fh ) ; curl_setopt ( $ ch , CURLOPT_INFILESIZE , $ this -> requestLength ) ; curl_setopt ( $ ch , CURLOPT_PUT , true ) ; $ this -> doExecute ( $ ch ) ; fclose ( $ fh ) ; }
Execute put.

@param mixed $ch

@return null
Execute put .