Changeset 292
- Timestamp:
- 06/03/10 12:05:25 (20 months ago)
- Files:
-
- 1 modified
-
trunk/test/unit_test (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit_test
r291 r292 78 78 fi 79 79 IP=`grep online_resource $TINYOWS_CONFIG_FILE | sed -e 's/.*online_resource="//' -e 's/".*//'` 80 curl -i -H "Content-Type: text/xml" --data @$unit_id $IP 80 FIRST_CHAR=`cat $unit_id | sed 's/\(.\).*/\1/'` 81 if [ $FIRST_CHAR = "<" ]; then 82 curl -i -H "Content-Type: text/xml" --data @$unit_id $IP 83 else 84 QUERY=`cat $unit_id` 85 curl -i "$IP?$QUERY" 86 fi 81 87 82 88 # Exception mode