commit 152f89692e05721838c53f2ce81e07dd64b68912
parent 01fafa8aadb0ef51f80f1c63d60b9a2d59d3173c
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date: Wed, 9 Sep 2015 16:36:11 +0200
specifying the whole URL when doing
the POST to /backend/contract, though that seems not to be the real bug
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/frontend/generate_taler_contract.php b/src/frontend/generate_taler_contract.php
@@ -67,11 +67,14 @@ $json = json_encode (array ('desc' => $desc,
'fraction' => $fraction,
'currency' => $currency)));
+echo "http://" . $SERVER['SERVER_NAME'] . "/backend/contract";
+exit;
+
// Craft the HTTP request, note that the backend
// could be on an entirely different machine if
// desired.
$req = new http\Client\Request ("POST",
- $_SERVER['SERVER_NAME'] . "/backend/contract",
+ "http://" . $SERVER['SERVER_NAME'] . "/backend/contract",
array ("Content-Type" => "application/json"));
$req->getBody()->append ($json);