}
protected void waitForPings(int count) throws SQLException, InterruptedException {
- GigiPreparedStatement ps = DatabaseConnection.getInstance().prepare("SELECT COUNT(*) FROM domainPinglog");
+ GigiPreparedStatement ps = DatabaseConnection.getInstance().prepare("SELECT COUNT(*) FROM `domainPinglog`");
long start = System.currentTimeMillis();
while (System.currentTimeMillis() - start < 10000) {
GigiResultSet rs = ps.executeQuery();
URLConnection openConnection = u.openConnection();
openConnection.setRequestProperty("Cookie", cookie);
openConnection.setDoOutput(true);
- openConnection.getOutputStream().write(content.getBytes());
+ openConnection.getOutputStream().write(content.getBytes("UTF-8"));
openConnection.getHeaderField("Location");
String newcontent = IOUtils.readURL(cookie(u.openConnection(), cookie));