summaryrefslogtreecommitdiff
path: root/src/exchange/test_taler_exchange_httpd.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-20 11:46:44 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-20 11:46:44 +0100
commitbe0a52f23cb22b15f93b1903a25a609e4c02745b (patch)
tree73a4e4c17bda3ba64d486b4b0bce3a59305f72ac /src/exchange/test_taler_exchange_httpd.sh
parent92080dc8a481446737afe953cbd1c4f31c1bcb43 (diff)
downloadexchange-be0a52f23cb22b15f93b1903a25a609e4c02745b.tar.gz
exchange-be0a52f23cb22b15f93b1903a25a609e4c02745b.tar.bz2
exchange-be0a52f23cb22b15f93b1903a25a609e4c02745b.zip
fix crash
Diffstat (limited to 'src/exchange/test_taler_exchange_httpd.sh')
-rwxr-xr-xsrc/exchange/test_taler_exchange_httpd.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/exchange/test_taler_exchange_httpd.sh b/src/exchange/test_taler_exchange_httpd.sh
index a6de77877..895b8b1df 100755
--- a/src/exchange/test_taler_exchange_httpd.sh
+++ b/src/exchange/test_taler_exchange_httpd.sh
@@ -57,9 +57,19 @@ echo " DONE"
echo -n "Running tests ..."
# We read the JSON snippets to POST from test_taler_exchange_httpd.post
cat test_taler_exchange_httpd.post | grep -v ^\# | awk '{ print "curl -d \47" $2 "\47 http://localhost:8081" $1 }' | bash &> /dev/null
-
+echo -n .
# We read the JSON snippets to GET from test_taler_exchange_httpd.get
cat test_taler_exchange_httpd.get | grep -v ^\# | awk '{ print "curl http://localhost:8081" $1 }' | bash &> /dev/null
+echo -n .
+# Also try them with various headers: Language
+cat test_taler_exchange_httpd.get | grep -v ^\# | awk '{ print "curl -H \"Accept-Language: fr,en;q=0.4,de\" http://localhost:8081" $1 }' | bash &> /dev/null
+echo -n .
+# Also try them with various headers: Accept encoding (wildcard #1)
+cat test_taler_exchange_httpd.get | grep -v ^\# | awk '{ print "curl -H \"Accept: text/*\" http://localhost:8081" $1 }' | bash &> /dev/null
+echo -n .
+# Also try them with various headers: Accept encoding (wildcard #2)
+cat test_taler_exchange_httpd.get | grep -v ^\# | awk '{ print "curl -H \"Accept: */html\" http://localhost:8081" $1 }' | bash &> /dev/null
+bash
echo " DONE"
# $! is the last backgrounded process, hence the exchange