Explorar el Código

Jeszcze jedna mała poprawka do VAT

Mariusz Muszyński hace 8 años
padre
commit
6f9166eec5
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      SE/se-lib/VAT.php

+ 2 - 0
SE/se-lib/VAT.php

@@ -111,6 +111,8 @@ Class VAT {
 		curl_setopt($this->ch, CURLOPT_URL, "http://www.finanse.mf.gov.pl/web/wp/pp/sprawdzanie-statusu-podmiotu-w-vat");
 		curl_setopt($this->ch, CURLOPT_URL, "http://www.finanse.mf.gov.pl/web/wp/pp/sprawdzanie-statusu-podmiotu-w-vat");
 		curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, true);
 		curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, true);
 		curl_setopt($this->ch, CURLOPT_FOLLOWLOCATION, true);
 		curl_setopt($this->ch, CURLOPT_FOLLOWLOCATION, true);
+		curl_setopt($this->ch, CURLOPT_SSL_VERIFYHOST, false);
+		curl_setopt($this->ch, CURLOPT_SSL_VERIFYPEER, false);
 		curl_setopt($this->ch, CURLOPT_CONNECTTIMEOUT, 10);
 		curl_setopt($this->ch, CURLOPT_CONNECTTIMEOUT, 10);
 		curl_setopt($this->ch, CURLOPT_COOKIEJAR, $this->cookies);
 		curl_setopt($this->ch, CURLOPT_COOKIEJAR, $this->cookies);
 		curl_setopt($this->ch, CURLOPT_COOKIEFILE, $this->cookies);
 		curl_setopt($this->ch, CURLOPT_COOKIEFILE, $this->cookies);