+
+# look for curl in PATH
+oIFS=$IFS
+IFS=:
+curl=''
+for p in $PATH; do
+ if test -x $p/curl; then
+ curl=$p/curl
+ break
+ fi
+done
+IFS=$oIFS
+
+if test -z $curl; then
+ echo "curl not found. $PREFIX can not be tested"
+ exit 1
+fi
+GET='$curl --silent --output $OUT2 "$f"'
+POST='$curl --silent --header "Content-Type: text/xml" --data-binary "@$postfile" --output $OUT2 "$f"'
+
+if [ -z "$SKIP_PAZPAR2" ] ; then
+# remove log if starting pazpar2
+ rm -f $PREFIX_pazpar2.log
+fi
+