]> git.saurik.com Git - apple/security.git/blob - SecurityTests/clxutils/urlPageGrab/grabPages
Security-57031.1.35.tar.gz
[apple/security.git] / SecurityTests / clxutils / urlPageGrab / grabPages
1 #! /bin/csh -f
2 #
3 # run urlPageGrab on a list of sites known to have images at their root page, and
4 # also to work with URLSimpleDownload with SSL. Arguments to this
5 # script are passed on to urlPageGrab unmodified.
6 #
7 set ARG_LIST =
8 set SSL = NO
9 #
10 while ( $#argv > 0 )
11 set thisArg = "$argv[1]"
12 if ( $thisArg == "s" ) then
13 set SSL = YES
14 endif
15 set ARG_LIST = "$ARG_LIST $thisArg"
16 shift
17 end
18 echo Starting grabPages\; args: $ARG_LIST
19 #
20 # sites which fail when SSL is NOT specified
21 #
22 set SSL_SITES =
23
24 set NORM_SITES = ( \
25 www.proteron.com \
26 www.thawte.com \
27 www.cduniverse.com \
28 www.yellownet.ch)
29
30 if ($SSL == "YES") then
31 set ALL_SITES = "$SSL_SITES $NORM_SITES"
32 else
33 set ALL_SITES = "$NORM_SITES"
34 endif
35 #
36 foreach site ($ALL_SITES);
37 urlPageGrab $site / $ARG_LIST;
38 end