Support HTTPS connection

Support HTTPS connection from server to server and server to cilent.
다양한 환경에서 적용하기 위해서 SSL 호스트 검증은 하지 못할듯 합니다. -- curl 이라면 가능하다고는 하는데..
This commit is contained in:
MinSoo Kim 2015-12-31 22:43:12 +09:00
parent c58b5bf4bf
commit b8fd20bbae
8 changed files with 46 additions and 11 deletions

View file

@ -136,7 +136,11 @@ class ModuleInstaller
$postdata["path"] = $this->package->path;
$postdata["module"] = "resourceapi";
$postdata["act"] = "procResourceapiDownload";
$buff = FileHandler::getRemoteResource($this->base_url, NULL, 3, "POST", "application/x-www-form-urlencoded", array(), array(), $postdata);
$request_config = array(
'ssl_verify_peer' => FALSE,
'ssl_verify_host' => FALSE
);
$buff = FileHandler::getRemoteResource($this->base_url, NULL, 3, "POST", "application/x-www-form-urlencoded", array(), array(), $postdata, $request_config);
FileHandler::writeFile($this->download_file, $buff);
}