src/Http.php
public function save($file) {
        if (!$file instanceof Stream) {
            $file = new Stream($file);
        }
        $file->open('w');
        $this->setCommonOption()
            ->setOption(CURLOPT_FILE, $file->getStream())
            ->execute();
        $file->close();
        return $this->responseText;
    }
public function save($file) {
        if (!$file instanceof Stream) {
            $file = new Stream($file);
        }
        $file->open('w');
        $this->setCommonOption()
            ->setOption(CURLOPT_FILE, $file->getStream())
            ->execute();
        $file->close();
        return $this->responseText;
    }
保存
@param $file
@return string
@throws \Exception