diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-11-19 17:08:12 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-11-19 17:08:12 +0100 |
commit | 1cfc56f43ef5afbb1adf6947978a2391cd9451f1 (patch) | |
tree | 88d920c863df4bfc6a9c5a6f920121b6443fad56 /php/backend.php | |
parent | fd6c75c2d1aecca9e004c4c1d72c032990a4c88f (diff) | |
download | merchant-frontend-examples-1cfc56f43ef5afbb1adf6947978a2391cd9451f1.tar.gz merchant-frontend-examples-1cfc56f43ef5afbb1adf6947978a2391cd9451f1.tar.bz2 merchant-frontend-examples-1cfc56f43ef5afbb1adf6947978a2391cd9451f1.zip |
switch to http for the example so that we do NOT have code to disable TLS cert checks in the examples
Diffstat (limited to 'php/backend.php')
-rw-r--r-- | php/backend.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/php/backend.php b/php/backend.php index c3c9b9e..a0cce83 100644 --- a/php/backend.php +++ b/php/backend.php @@ -15,11 +15,6 @@ $options = array(CURLOPT_RETURNTRANSFER => true, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => $json, - // Disabling SSL for the sole purpose of speed - // up the tutorial, as the normal user is likely - // to NOT have certs for taler.net - CURLOPT_SSL_VERIFYHOST => false, - CURLOPT_SSL_VERIFYPEER => false, CURLOPT_HTTPHEADER => array('Content-Type: application/json')); curl_setopt_array($c, $options); @@ -36,9 +31,7 @@ $c = curl_init(url_join($GLOBALS['BACKEND'], $path)); $options = array(CURLOPT_RETURNTRANSFER => true, - CURLOPT_CUSTOMREQUEST => "GET", - CURLOPT_SSL_VERIFYHOST => false, - CURLOPT_SSL_VERIFYPEER => false); + CURLOPT_CUSTOMREQUEST => "GET"); curl_setopt_array($c, $options); $r = curl_exec($c); file_put_contents("/tmp/php.out", print_r($r, true)); |