public ServerCommunicator(String server, int port, HTTP_Proxy proxy,
                              LoginInfo info) {
        LoginInfo = info;
        ServerForHost = server + ":" + Integer.toString(port);
        Client = new HttpClient();
        if (proxy != null && proxy.isCollect()) {
            Proxy = proxy;
            Proxy.setConfig(Client);
            //isProxy = true;
        }
    }