request.setParameter("myparam", new String[] { "hello",
"中华人民共和国" });
try {
request.setParameter("myfile", new UploadFileSpec[] { //
new UploadFileSpec(new File(srcdir, "smallfile.txt")), //
new UploadFileSpec(new File(srcdir, "smallfile_.JPG")), //
new UploadFileSpec(new File(srcdir, "smallfile.gif")), //
new UploadFileSpec(new File(srcdir, "smallfile")), //
});
} catch (IllegalRequestParameterException e) {
}
client.putCookie("mycookie", "mycookievalue");