package com.eu.habbo.util.callback;

/* public class HTTPPostError implements Runnable
{
    public Throwable stackTrace;

    public HTTPPostError(Throwable stackTrace)
    {
        this.stackTrace = stackTrace;
    }

    private void sendPost()
    {
        try
        {
            if (!Emulator.isReady)
                return;

            StringWriter sw = new StringWriter();
            PrintWriter pw = new PrintWriter(sw);
            this.stackTrace.printStackTrace(pw);
            String url = "http://arcturus.pw/callback/error.php";
            URL obj = new URL(url);
            HttpURLConnection con = (HttpURLConnection) obj.openConnection();
            con.setRequestMethod("POST");
            con.setRequestProperty("User-Agent", "arcturus");
            String urlParameters = "errors=1&version=" + Emulator.version + "&stacktrace=" + sw.toString() + "&users=" + Emulator.getGameEnvironment().getHabboManager().getOnlineCount() + "&rooms=" + Emulator.getGameEnvironment().getRoomManager().getActiveRooms().size() + "&username=" + Emulator.getConfig().getValue("username");
            con.setDoOutput(true);
            DataOutputStream wr = new DataOutputStream(con.getOutputStream());
            wr.writeBytes(urlParameters);
            wr.flush();
            wr.close();
            pw.close();
            sw.close();

            int responseCode = con.getResponseCode();
            con.disconnect();
        }
        catch (Exception e)
        {
        }
    }

    @Override
    public void run()
    {
        try
        {
            this.sendPost();
        }
        catch (Exception e)
        {
        }
    }
} */
