@@ 231-235 (lines=5) @@ | ||
228 | curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); |
|
229 | } |
|
230 | // enviar XML al SII |
|
231 | for ($i = 0; $i < $retry; $i++) { |
|
232 | $response = curl_exec($curl); |
|
233 | if ($response and $response != 'Error 500') |
|
234 | break; |
|
235 | } |
|
236 | unlink($file); |
|
237 | // verificar respuesta del envío y entregar error en caso que haya uno |
|
238 | if (!$response or $response == 'Error 500') { |
@@ 307-311 (lines=5) @@ | ||
304 | curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); |
|
305 | } |
|
306 | // enviar XML al SII |
|
307 | for ($i=0; $i<$retry; $i++) { |
|
308 | $response = curl_exec($curl); |
|
309 | if ($response and $response!='Error 500') |
|
310 | break; |
|
311 | } |
|
312 | unlink($file); |
|
313 | // verificar respuesta del envío y entregar error en caso que haya uno |
|
314 | if (!$response or $response=='Error 500') { |