public function setUserAgent($userAgent)
  {
    $this->userAgent = $userAgent;
    if ($this->canGzip) {
      $this->userAgent = $userAgent . self::GZIP_UA;
    }
  }
public function setUserAgent($userAgent)
  {
    $this->userAgent = $userAgent;
    if ($this->canGzip) {
      $this->userAgent = $userAgent . self::GZIP_UA;
    }
  }
public function setUserAgent ( $ userAgent ) { $ this -> userAgent = $ userAgent ; if ( $ this -> canGzip ) { $ this -> userAgent = $ userAgent . self :: GZIP_UA ; } }
Set the User-Agent Header.
@param string $userAgent The User-Agent.
Set the User - Agent Header .