loginNameValuePairs[4] = new NameValuePair("method", "POST");
loginNameValuePairs[4] = new NameValuePair("method", "post");
	private static void postResults(final String wikiHost,			final String wikiPort, final String wikiPage,			final String fileContents, final String wikiUsername, final String wikiPassword) {		try {			final HttpClient httpClient = HttpClientFactory.getHttpClient(					wikiHost, wikiPort);            final GetMethod method = HttpClientFactory.getGetMethod("/UserPreferences");            executeMethod(httpClient, method);            method.setPath("/UserPreferences" + "#preview");            final NameValuePair[] loginNameValuePairs = new NameValuePair[5];            loginNameValuePairs[0] = new NameValuePair("action", "userform");            loginNameValuePairs[1] = new NameValuePair("username", wikiUsername);            loginNameValuePairs[2] = new NameValuePair("password", wikiPassword);            loginNameValuePairs[3] = new NameValuePair("login", "Login");            loginNameValuePairs[4] = new NameValuePair("method", "POST");            method.setQueryString(loginNameValuePairs);            executeMethod(httpClient, method);            method.setPath("/" + wikiPage);            executeMethod(httpClient, method);			method.setPath("/" + wikiPage + "?action=edit");			executeMethod(httpClient, method);			method.setPath("/" + wikiPage);			final NameValuePair[] nameValuePairs = new NameValuePair[4];			nameValuePairs[0] = new NameValuePair("action", "savepage");			nameValuePairs[1] = new NameValuePair("button_save", "Save Changes");			nameValuePairs[2] = new NameValuePair("savetext", fileContents);			nameValuePairs[3] = new NameValuePair("method", "post");			method.setQueryString(nameValuePairs);			executeMethod(httpClient, method);        } catch (Exception e) {			throw new RuntimeException(e);		}	}