src/EasyCurl.php
public function buildQuery()
    {
        if ($this->proxy) {
            $this->setOpt(CURLOPT_PROXY, $this->proxy);
        }

        $this->setOpt(CURLOPT_RETURNTRANSFER, true);
        $this->setOpt(CURLOPT_USERAGENT, $this->userAgent);
        $this->setOpt(CURLOPT_CONNECTTIMEOUT, $this->timeOut);
        $this->setOpt(CURLINFO_HEADER_OUT, true);
        $this->setOpt(CURLOPT_HEADERFUNCTION, array($this, 'headerCallback'));

        if (null !== $this->login && null !== $this->password) {
            $this->setOpt(CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
            $this->setOpt(CURLOPT_USERPWD, $this->login . ':' . $this->password);
        }
    }
public function buildQuery()
    {
        if ($this->proxy) {
            $this->setOpt(CURLOPT_PROXY, $this->proxy);
        }

        $this->setOpt(CURLOPT_RETURNTRANSFER, true);
        $this->setOpt(CURLOPT_USERAGENT, $this->userAgent);
        $this->setOpt(CURLOPT_CONNECTTIMEOUT, $this->timeOut);
        $this->setOpt(CURLINFO_HEADER_OUT, true);
        $this->setOpt(CURLOPT_HEADERFUNCTION, array($this, 'headerCallback'));

        if (null !== $this->login && null !== $this->password) {
            $this->setOpt(CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
            $this->setOpt(CURLOPT_USERPWD, $this->login . ':' . $this->password);
        }
    }
@uses  headerCallback()

Build query