Nextrek
Diff Revisions
250
vs
265
for /Android/SmartCharging/endPoints/get_immagini.php
|
@@ -1,4 +1,7 @@ |
1 |
1 |
|
<?php |
|
2 |
+ |
header("Access-Control-Allow-Origin: *"); |
|
3 |
+ |
header('Content-Type: application/json; charset=UTF-8'); |
|
4 |
+ |
|
2 |
5 |
|
require_once("LocalRepository.php"); |
3 |
6 |
|
require_once("CommentRepository.php"); |
4 |
7 |
|
|
|
@@ -6,7 +9,10 @@ |
6 |
9 |
|
$username = "smartcharging"; |
7 |
10 |
|
$password = "LXRLBaEAuRr7M7jY"; |
8 |
11 |
|
|
9 |
|
- |
$params = json_decode($_REQUEST["params"], true); //da portare su POST la richiesta |
|
12 |
+ |
//$params = json_decode($_REQUEST["params"], true); |
|
13 |
+ |
|
|
14 |
+ |
//$input = file_get_contents('php://input'); |
|
15 |
+ |
$params = json_decode(file_get_contents('php://input'), true); |
10 |
16 |
|
|
11 |
17 |
|
$conn; |
12 |
18 |
|
$risposta = array(); |