protected URL buildURL(String code, String[] variables) throws APIException, MalformedURLException {
		StringBuilder path = new StringBuilder(67);
		path.append("/?uid=");
		path.append(this.uid);
		path.append("&ssid=");
		path.append(this.ssid);
		path.append("&code=");
		path.append(code);
		path.append("&variable=");
		if (variables != null && variables.length > 0) {
			for (int v = 0; v < variables.length; v++) {
				if (v != 0)
					path.append('|');
				path.append(variables[v] == null ? "" : variables[v]);
			}
		}
		path.append("&random=");
		path.append(Util.random());
		if (debug != null)
			debug.println("Path: " + path.toString());
		return new URL(protocol, url, port, path.toString());
	}