При подключении через свою сеть все работает хорошо, однако если подключаться через корпоративный прокси то появляется такая ошибка:
SoapClient::SoapClient: ... failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Это код:
$http_headers = [
"http" => [
"protocol_version" => 1.1,
"header" => "Authorization:Bearer ".$bearer
]
];
$params = [
"stream_context" => stream_context_create ($http_headers),
"trace" => true,
"exceptions" => false
];
$client = new SoapClient ($url, $params);
$result = $client->SendMessage ([
"name" => $name,
"id" => $id,
"mess" => $mess
]);
print_r ($result);
Продвижение своими сайтами как стратегия роста и независимости