3 TRACE="--trace-ascii curl_log.txt"
4 SERVER=`cat .httpServer`
8 echo "Use: $0 <xml_file> [2c]"
10 echo "Sends 'xml_file' to the diameter server or to the client when '2c' parameter is provided."
16 [[ "$1" = "" ]] && use
17 [[ ! -f "$1" ]] && { echo "ERROR: file '$1' not found" ; echo; echo; exit ; }
19 operation="sendxml|$1"
20 [[ "$2" = "2c" ]] && operation="sendxml2c|$1"
22 curl -m 1 --data "$operation" $TRACE ${SERVER}