3 TRACE="--trace-ascii curl_log.txt"
4 SERVER=`cat .httpServer`
8 echo "Use: $0 <xml_file>"
10 echo "Creates '<xml_file>.hex' with encoded result."
16 [[ "$1" = "" ]] && use
17 [[ ! -f "$1" ]] && { echo "ERROR: file '$1' not found" ; echo; echo; exit ; }
19 operation="code|$1|${1}.hex"
20 curl -m 1 --data "$operation" $TRACE ${SERVER}