}
qryStrList = addSelectField(qryStrList, select);
}
for (int i=0; i<qryStrList.size(); i++) {
HttpMessage msg = null;
URI uri = null;
String qryStr = (String) qryStrList.elementAt(i);
if (form.getMethod().equalsIgnoreCase(Form.GET)) {
String action = (form.getAction().indexOf(QUESTION) <0) ? form.getAction()+QUESTION+qryStr : form.getAction()+AMPERSAND+qryStr;
uri = new URI(baseURI, action, true);
reqHeader = new HttpRequestHeader(form.getMethod().trim().toUpperCase(), uri, HttpHeader.HTTP11);
msg = new HttpMessage(reqHeader);
} else if (form.getMethod().equalsIgnoreCase(Form.POST)) {
if (!parent.getParent().getSpiderParam().isPostForm()) {
continue;
}
uri = new URI(baseURI, form.getAction(), true);
reqHeader = new HttpRequestHeader(form.getMethod().trim().toUpperCase(), uri, HttpHeader.HTTP11);
reqBody = new HttpBody(qryStr);
reqHeader.setContentLength(reqBody.length());
msg = new HttpMessage(reqHeader, reqBody);
} else {
continue;
}
msg.getRequestHeader().setContentLength(msg.getRequestBody().length());
qryList.add(msg);
}
} catch (Exception e) {
}