3 TRACE="--trace-ascii curl_log.txt"
4 SERVER=`cat .httpServer`
8 echo "Use: $0 [xml_file] [2e]"
10 echo "Programm 'xml_file' answer to the diameter client or to the server (entity) when"
11 echo "'2e' parameter is provided. If missing xml file, current programmed answers will"
12 echo "be shown: '$0' (answers to client), '$0 2e' (answers to server)."
18 operation="answerxml2e"
20 [[ ! -f "$1" ]] && { echo "ERROR: file '$1' not found" ; echo; echo; exit ; }
21 operation="answerxml|$1"
22 [[ "$2" = "2e" ]] && operation="answerxml2e|$1"
28 curl -m 1 --data "$operation" $TRACE ${SERVER}