--- Makefile 2000/08/11 09:57:42 1.5 +++ Makefile 2000/08/13 20:11:51 1.8 @@ -1,13 +1,13 @@ -APXS_FLAGS=-DTEST_QUERYSTRING -DDEBUG -i -a +APXS_FLAGS=-i -a -DTEST_QUERYSTRING -DDEBUG #APXS=/usr/local/apache/bin/apxs #URL=http://dpavlinusic.pliva.hr/~dpavlin/case12.html.czs APXS=/usr/sbin/apxs #APACHECTL=/usr/local/apache/bin/apachectl APACHECTL=/etc/rc.d/init.d/httpd - +WGETOPT=--user-agent="Mac" URL=http://localhost/czs/~dpavlin/ -URL2=http://localhost/~dpavlin/?foo +URL2=http://localhost/mac/~dpavlin/?foo all: $(APACHECTL) stop @@ -20,10 +20,18 @@ clean: rm -f *.o *.so *~ - test: - wget --save-headers --proxy=off -O out $(URL) + echo -e "GET /czs/n.html HTTP/1.0\n" | nc localhost 80 2>&1 | tee out | head -30 + +test1: + wget --save-headers --proxy=off -O out $(WGETOPT) $(URL) test2: - wget --save-headers --proxy=off -O out2 $(URL2) + wget --save-headers --proxy=off -O out2 $(WGETOPT) $(URL2) + +mac1: + echo -e "GET ~dpavlin/neformalno.html HTTP/1.0\nUser-agent: Mac\n\n" | nc localhost 80 2>&1 | tee out-mac1 | head -30 + wget --save-headers --proxy=off -O out-mac1 --user-agent="Mac" http://localhost/~dpavlin/neformalno.html +mac2: + wget --save-headers --proxy=off -O out-mac2 --user-agent="Mac" http://localhost/mac/~dpavlin/