public function call($request = null, $post = null) { foreach ($this->domains as $domain) { $fullUrl = self::url . "{$domain}"; $c = new curl($fullUrl); if (isset($request)) { $c->setRequest($request); } if (isset($post)) { $json = json_encode($post); $c->setPost($json); } $c->createCurl(); $resp = $c->getWebPage(); $this->returnCode = $c->getHttpStatus(); $this->checkVuln($resp, $domain); } }