diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2015-08-11 12:42:44 +0200 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2015-08-11 12:42:44 +0200 |
commit | 3933e70e713a090a9a5dd531bc82498945d42880 (patch) | |
tree | 485059c56bd511c702e093fafbeb33b28efa2f05 /src/frontend/cert.php | |
parent | abe5971f7398bda68c0e2757ccb8cdbe23d081e5 (diff) | |
download | merchant-3933e70e713a090a9a5dd531bc82498945d42880.tar.gz merchant-3933e70e713a090a9a5dd531bc82498945d42880.tar.bz2 merchant-3933e70e713a090a9a5dd531bc82498945d42880.zip |
last commit before switching to the branch "light", \
aimed to cut off unneeded code got from the mint tree. \
Please, be aware that in this state the file src/backend/Makefile.am \
has some lines with hardcoded paths, this tune it as needed.
As of this commit, the merchant is able to receive a JSON request
for generating a certificate, store it, and return a JSON response.
To be documented.
Diffstat (limited to 'src/frontend/cert.php')
-rw-r--r-- | src/frontend/cert.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/frontend/cert.php b/src/frontend/cert.php index 9f0af350..501fe31b 100644 --- a/src/frontend/cert.php +++ b/src/frontend/cert.php @@ -60,12 +60,11 @@ else{ 'currency' => $currency))); // test // echo $json; - - //echo phpinfo (); + // echo phpinfo (); // crafting the request $req = new http\Client\Request ("POST", - "http://" . $SERVER["SERVER_NAME"] . "/backend" . "/contract", + "http://" . $_SERVER["SERVER_NAME"] . "/backend" . "/contract", //"http://localhost:9898/", array ("Content-Type" => "application/json")); $req->getBody()->append ($json); |