Говорю жахни пост по ссылке, игнорь ssl.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $respObject->Url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER. false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
$html = curl_exec($ch);
$postData - строка с текстом длиной дцать символов
А он в ответ шлёт меня далеко...
$html == false
curl_error($ch) == «SSL certificate problem: unable to get local issuer certificate»
curl_getinfo($ch):
appconnect_time_us: 0
certinfo: []
connect_time: 0.201332
connect_time_us: 201332
content_type: null
download_content_length: -1
filetime: -1
header_size: 0
http_code: 0
http_version: 0
local_ip: "85.143.216.222"
local_port: 51314
namelookup_time: 0.005656
namelookup_time_us: 5656
pretransfer_time: 0
pretransfer_time_us: 0
primary_ip: "34.211.232.52"
primary_port: 12043
protocol: 2
redirect_count: 0
redirect_time: 0
redirect_time_us: 0
redirect_url: ""
request_size: 0
scheme: "HTTPS"
size_download: 0
size_upload: 0
speed_download: 0
speed_upload: 0
ssl_verify_result: 20
ssl_verifyresult: 0
starttransfer_time: 0
starttransfer_time_us: 0
total_time: 0.413697
total_time_us: 413697
upload_content_length: -1
url: "https://simhost-0b4f628e10cf343f9.agni.secondlife.io:12043/cap/..."
* Server certificate:
* subject: C=US; ST=California; L=San Francisco; O=Linden Lab, Inc.; CN=*.agni.secondlife.io; emailAddress=root@lindenlab.com
* start date: Aug 4 17:38:17 2020 GMT
* expire date: Aug 4 17:38:17 2023 GMT
* issuer: C=US; ST=California; L=San Francisco; O=Linden Lab, Inc.; OU=Linden Lab Certificate Authority; CN=Linden Lab Certificate Authority; emailAddress=ca@lindenlab.com
* SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.