Skip to content
Snippets Groups Projects
Verified Commit 7b5762f4 authored by Damien's avatar Damien
Browse files

External SB controller curlSOAP

parent 787f51d2
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,7 @@ class CurlModel
{
ValidatorModel::notEmpty($aArgs, ['xmlPostString', 'url', 'soapAction']);
ValidatorModel::stringType($aArgs, ['xmlPostString', 'url', 'soapAction']);
ValidatorModel::arrayType($aArgs, ['options']);
$opts = [
CURLOPT_URL => $aArgs['url'],
......@@ -84,6 +85,10 @@ class CurlModel
]
];
if (!empty($aArgs['options'])) {
$opts = array_merge($opts, $aArgs['options']);
}
$curl = curl_init();
curl_setopt_array($curl, $opts);
$rawResponse = curl_exec($curl);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment