X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fresources%2FsendXml.sh;fp=example%2Fdiameter%2Flauncher%2Fresources%2FsendXml.sh;h=d9d58e201c992125b2cc41cd334d0f274a1321b3;hb=2591707d6a9019eea0a37cf69cf6b9e76242f600;hp=0000000000000000000000000000000000000000;hpb=4e12ac57e93c052f716a6305ad8fc099c45899d1;p=anna.git diff --git a/example/diameter/launcher/resources/sendXml.sh b/example/diameter/launcher/resources/sendXml.sh new file mode 100755 index 0000000..d9d58e2 --- /dev/null +++ b/example/diameter/launcher/resources/sendXml.sh @@ -0,0 +1,23 @@ +#!/bin/ksh +> curl_log.txt +TRACE="--trace-ascii curl_log.txt" +SERVER=`cat .httpServer` + +use () { + + echo "Use: $0 [2c]" + echo + echo "Sends 'xml_file' to the diameter server or to the client when '2c' parameter is provided." + echo + exit +} + +echo +[[ "$1" = "" ]] && use +[[ ! -f "$1" ]] && { echo "ERROR: file '$1' not found" ; echo; echo; exit ; } +echo +operation="sendxml|$1" +[[ "$2" = "2c" ]] && operation="sendxml2c|$1" + +curl -m 1 --data "$operation" $TRACE ${SERVER} +