mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +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
|
|
@ -310,7 +310,11 @@ class autoinstallAdminView extends autoinstall
|
|||
$params["act"] = "getResourceapiPackages";
|
||||
$params["package_srls"] = implode(",", array_keys($package_list));
|
||||
$body = XmlGenerater::generate($params);
|
||||
$buff = FileHandler::getRemoteResource(_XE_DOWNLOAD_SERVER_, $body, 3, "POST", "application/xml");
|
||||
$request_config = array(
|
||||
'ssl_verify_peer' => FALSE,
|
||||
'ssl_verify_host' => FALSE
|
||||
);
|
||||
$buff = FileHandler::getRemoteResource(_XE_DOWNLOAD_SERVER_, $body, 3, "POST", "application/xml", array(), array(), array(), $request_config);
|
||||
$xml_lUpdate = new XmlParser();
|
||||
$xmlDoc = $xml_lUpdate->parse($buff);
|
||||
if($xmlDoc && $xmlDoc->response->packagelist->item)
|
||||
|
|
@ -401,7 +405,11 @@ class autoinstallAdminView extends autoinstall
|
|||
$params = array();
|
||||
$params["act"] = "getResourceapiLastupdate";
|
||||
$body = XmlGenerater::generate($params);
|
||||
$buff = FileHandler::getRemoteResource(_XE_DOWNLOAD_SERVER_, $body, 3, "POST", "application/xml");
|
||||
$request_config = array(
|
||||
'ssl_verify_peer' => FALSE,
|
||||
'ssl_verify_host' => FALSE
|
||||
);
|
||||
$buff = FileHandler::getRemoteResource(_XE_DOWNLOAD_SERVER_, $body, 3, "POST", "application/xml", array(), array(), array(), $request_config);
|
||||
$xml_lUpdate = new XmlParser();
|
||||
$lUpdateDoc = $xml_lUpdate->parse($buff);
|
||||
$updateDate = $lUpdateDoc->response->updatedate->body;
|
||||
|
|
@ -547,7 +555,11 @@ class autoinstallAdminView extends autoinstall
|
|||
$params["act"] = "getResourceapiPackages";
|
||||
$params["package_srls"] = $package_srl;
|
||||
$body = XmlGenerater::generate($params);
|
||||
$buff = FileHandler::getRemoteResource(_XE_DOWNLOAD_SERVER_, $body, 3, "POST", "application/xml");
|
||||
$request_config = array(
|
||||
'ssl_verify_peer' => FALSE,
|
||||
'ssl_verify_host' => FALSE
|
||||
);
|
||||
$buff = FileHandler::getRemoteResource(_XE_DOWNLOAD_SERVER_, $body, 3, "POST", "application/xml", array(), array(), array(), $request_config);
|
||||
$xml_lUpdate = new XmlParser();
|
||||
$xmlDoc = $xml_lUpdate->parse($buff);
|
||||
if($xmlDoc && $xmlDoc->response->packagelist->item)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue