connection.addPostValue(VERSION_KEY, JMConstants.CURRENT_JMULE_VERSION);
try {
String result = connection.sendQuery();
last_update_time = System.currentTimeMillis();
response_code = connection.getHttpResponseCode();
Pattern pattern = Pattern.compile(VERSION_REGEX);
Matcher matcher = pattern.matcher(result);
if (!matcher.find())
throw new JMUpdaterException("Version tag not found");
version = matcher.group(1);
version = version.trim();
result = result.replace("\n", "<br>");
pattern = Pattern.compile(CHANGELOG_REGEX);
matcher = pattern.matcher(result);
if (!matcher.find())
throw new JMUpdaterException("Changelog tag not found");
changelog = matcher.group(1);
changelog = changelog.replace("<br>", "\n");
return ;