Arreglo de datos GET en MULTIPART

This commit is contained in:
Brayan Osmar Pereyra Suxo
2014-04-09 10:52:53 -04:00
parent 7f46be1ec8
commit d0a1b4859c
2 changed files with 8 additions and 1 deletions

View File

@@ -121,11 +121,15 @@ class WebApplication
}
}
$baseUrl = (empty($input->base_url)) ? $uri : $input->base_url;
foreach($input->calls as $value) {
$_SERVER["REQUEST_METHOD"] = (empty($value->method)) ? 'GET' : $value->method;
$uriTemp = trim($baseUrl) . trim($value->url);
if (strpos($uriTemp, '?') !== false) {
$dataGet = explode('?', $uriTemp);
parse_str($dataGet[1], $get);
$_GET = array_merge($_GET, $get);
}
$inputExecute = (empty($value->data)) ? '' : json_encode($value->data);
$this->responseMultipart[] = $this->dispatchApiRequest($uriTemp, $version, true, $inputExecute);
}