client/servlet/test/src/webservice/tests/t4.sh

Code
Comments
Other
Rev Date Author Line
3486 16 Nov 09 gregory 1 # Only allow http:// for referenced files
3486 16 Nov 09 gregory 2 generate_name
3486 16 Nov 09 gregory 3 echo -e "Name\tUniformResourceIdentifier" > $A
3486 16 Nov 09 gregory 4 echo -e "$name\tfile:///etc/passwd" >> $A
3486 16 Nov 09 gregory 5 if [ -e $B ]; then rm $B; fi 
3486 16 Nov 09 gregory 6 curlit "-s -o $B -T $A" "$resource/files?$auth"
3486 16 Nov 09 gregory 7 if [ ! -e $B ]; then
3486 16 Nov 09 gregory 8   fail "$test" "Check $A and $B"
3486 16 Nov 09 gregory 9 fi
3486 16 Nov 09 gregory 10 # $Id$