@@ 294-298 (lines=5) @@ | ||
291 | curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); |
|
292 | } |
|
293 | // enviar XML al SII |
|
294 | for ($i=0; $i<$retry; $i++) { |
|
295 | $response = curl_exec($curl); |
|
296 | if ($response and $response!='Error 500') |
|
297 | break; |
|
298 | } |
|
299 | unlink($file); |
|
300 | // verificar respuesta del envío y entregar error en caso que haya uno |
|
301 | if (!$response or $response=='Error 500') { |
@@ 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') { |