private function __responseWriteCallback(&$curl, &$data) { if (!isset($this->response->body)) { $this->response->body = $data; } else { $this->response->body .= $data; } return strlen($data); }