summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/WebConsole/includes/restfunctions.php7
-rw-r--r--admin/WebConsole/principal/sondeo.php2
2 files changed, 5 insertions, 4 deletions
diff --git a/admin/WebConsole/includes/restfunctions.php b/admin/WebConsole/includes/restfunctions.php
index f3590969..5bea9c0b 100644
--- a/admin/WebConsole/includes/restfunctions.php
+++ b/admin/WebConsole/includes/restfunctions.php
@@ -24,14 +24,15 @@ function multiRequest($data, $options = array()) {
$curly[$id] = curl_init();
$url = (is_array($d) && !empty($d['url'])) ? $d['url'] : $d;
- curl_setopt($curly[$id], CURLOPT_URL, $url);
- curl_setopt($curly[$id], CURLOPT_HEADER, 0);
+ curl_setopt($curly[$id], CURLOPT_URL, $url);
+ curl_setopt($curly[$id], CURLOPT_HEADER, 0);
curl_setopt($curly[$id], CURLOPT_RETURNTRANSFER, 1);
+ curl_setopt($curly[$id], CURLOPT_TIMEOUT, 1000);
// post?
if (is_array($d)) {
if (!empty($d['post'])) {
- curl_setopt($curly[$id], CURLOPT_POST, 1);
+ curl_setopt($curly[$id], CURLOPT_POST, 1);
curl_setopt($curly[$id], CURLOPT_POSTFIELDS, $d['post']);
}
}
diff --git a/admin/WebConsole/principal/sondeo.php b/admin/WebConsole/principal/sondeo.php
index 2cc30ea4..ea11e6e5 100644
--- a/admin/WebConsole/principal/sondeo.php
+++ b/admin/WebConsole/principal/sondeo.php
@@ -44,7 +44,7 @@
RecopilaIpesMacs($cmd,$ambito,$idambito); // Ámbito de aplicación
$aplicacion="ido=".$cadenaid.chr(13)."iph=".$cadenaip.chr(13);
// Reset status.
- echo "cadenaip";
+ echo "$cadenaip;";
//________________________________________________________________________________________________________
// Envio al servidor de la petición
//________________________________________________________________________________________________________