This commit is contained in:
Lizandro Guarnizo
2026-02-21 08:58:22 -05:00
parent 38cd62eb0e
commit f6cf4bace1
2 changed files with 19 additions and 4 deletions
+8 -2
View File
@@ -447,7 +447,9 @@ class WhatsAppService
'Authorization: Bearer ' . $this->token
],
CURLOPT_TIMEOUT => 300,
CURLOPT_CONNECTTIMEOUT => 30
CURLOPT_CONNECTTIMEOUT => 30,
CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
]);
$response = curl_exec($ch);
@@ -593,6 +595,8 @@ class WhatsAppService
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_MAXREDIRS => 3,
CURLOPT_HEADER => true, // Capturar headers de respuesta
CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
]);
if ($method === 'POST' && $data) {
@@ -899,7 +903,9 @@ class WhatsAppService
'Authorization: Bearer ' . $this->token
],
CURLOPT_TIMEOUT => 60,
CURLOPT_FOLLOWLOCATION => true
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
]);
$fileContent = curl_exec($ch);