if test -z "$PORT"; then
PORT=9004
fi
+SERVICE=$3
+if test -z "$SERVICE"; then
+ SERVICE=perf
+fi
H="http://localhost:${PORT}/search.pz2"
-wget -q -O $OF.init.xml "$H/?command=init&service=perf_t&extra=$OF"
+wget -q -O $OF.init.xml "$H/?command=init&service=${SERVICE}&extra=$OF"
S=`xsltproc get_session.xsl $OF.init.xml`
wget -q -O $OF.search.xml "$H?command=search&query=100&session=$S"
sleep 1