69 |
wget -q -O- -e 'http_proxy=http://127.0.0.1:8080/' http://127.0.0.1:8000/1/2/2.html | diff recursive/1/2/2.html - |
wget -q -O- -e 'http_proxy=http://127.0.0.1:8080/' http://127.0.0.1:8000/1/2/2.html | diff recursive/1/2/2.html - |
70 |
wget -q -O- -e 'http_proxy=http://127.0.0.1:8080/' http://127.0.0.1:8000/1/2/2.css | diff recursive/1/2/2.css - |
wget -q -O- -e 'http_proxy=http://127.0.0.1:8080/' http://127.0.0.1:8000/1/2/2.css | diff recursive/1/2/2.css - |
71 |
|
|
72 |
|
# test localhost |
73 |
|
wget -q -O- -e 'http_proxy=http://127.0.0.1:8080/' http://localhost:8000/index.html | diff recursive/index.html - |
74 |
|
|
75 |
|
# test actual hostname |
76 |
|
h=`hostname` |
77 |
|
wget -q -O- -e 'http_proxy=http://127.0.0.1:8080/' http://${h}:8000/index.html | diff recursive/index.html - |
78 |
|
|
79 |
# test query string |
# test query string |
80 |
wget -q -O- -e 'http_proxy=http://127.0.0.1:8080/' http://127.0.0.1:8000/index.html?foo | diff recursive/index.html - |
wget -q -O- -e 'http_proxy=http://127.0.0.1:8080/' http://127.0.0.1:8000/index.html?foo | diff recursive/index.html - |
81 |
|
|
105 |
diff ../jscoverage-throbber.gif DIR/jscoverage-throbber.gif |
diff ../jscoverage-throbber.gif DIR/jscoverage-throbber.gif |
106 |
echo -e 'jscoverage_isReport = true;\r' | cat ../jscoverage.js - | diff - DIR/jscoverage.js |
echo -e 'jscoverage_isReport = true;\r' | cat ../jscoverage.js - | diff - DIR/jscoverage.js |
107 |
|
|
108 |
## send it an FTP request |
# send it an FTP request |
109 |
#echo 400 > EXPECTED |
echo 400 > EXPECTED |
110 |
#! curl -f -w '%{http_code}\n' -x 127.0.0.1:8080 ftp://ftp.example.com 2> /dev/null > ACTUAL |
! curl -f -w '%{http_code}\n' -x 127.0.0.1:8080 ftp://ftp.example.com 2> /dev/null > ACTUAL |
111 |
#diff EXPECTED ACTUAL |
diff EXPECTED ACTUAL |
112 |
# |
|
113 |
## nonexistent domain |
# nonexistent domain |
114 |
#echo 500 > EXPECTED |
echo 504 > EXPECTED |
115 |
#! curl -f -w '%{http_code}\n' -x 127.0.0.1:8080 http://nonexistent 2> /dev/null > ACTUAL |
! curl -f -w '%{http_code}\n' -x 127.0.0.1:8080 http://nonexistent 2> /dev/null > ACTUAL |
116 |
#diff EXPECTED ACTUAL |
diff EXPECTED ACTUAL |
117 |
|
|
118 |
# 404 not found |
# 404 not found |
119 |
echo 404 > EXPECTED |
echo 404 > EXPECTED |