                 headers: HTTPHeaders,
                 body:[UInt8]
             ) {
-                if url != requestURL {
-                    logError("URL in response does not match URL in ping request: \(url) != \(requestURL)")
+                if url != pingURL {
+                    logError("URL in response does not match URL in ping request: \(url) != \(pingURL)")
                     return
                 }
 

                logInfo("Successfully connected to IMS Server: \(self.url)")
                _connected = true
            }
        }
    }
    private var _connected: Bool = false


    func reload() -> Failable {
        ping()




    }


    func connect() {
        if !_connected {
            let pingURL = "\(self.url)ping/"

            var headers = HTTPHeaders()
            headers.add(name: "Accept", value: "application/json")

            let request = HTTPRequest(
                url: pingURL,
                method: HTTPMethod.GET,
                headers: headers,
                body: []
