mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Support HTTPS connection
Support HTTPS connection from server to server and server to cilent. 다양한 환경에서 적용하기 위해서 SSL 호스트 검증은 하지 못할듯 합니다. -- curl 이라면 가능하다고는 하는데..
This commit is contained in:
parent
c58b5bf4bf
commit
b8fd20bbae
8 changed files with 46 additions and 11 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue