I would say that you should use the HTTP Status Code returned by HTTP Get. A well designed service should return 401 Unauthorised.
Regards, Narinder Chandi, ToolBox Systems Ltd. I am available for new consulting opportunities… http://4d.1045681.n5.nabble.com/ANN-4D-Developer-Available-td5765443.html -- -----Original Message----- From: 4D_Tech <[email protected]> on behalf of 4D Tech Mailing List <[email protected]> Reply-To: 4D Tech Mailing List <[email protected]> Date: Friday, 27 September 2019 at 17:07 To: 4D Tech Mailing List <[email protected]> Cc: Paul Lovejoy <[email protected]> Subject: HTTP AUTHENTICATE - how to know if the authentification worked Hi everyone, I’m using HTTP AUTHENTICATE to authenticate connections to a web server. The call to authenticate is immediately followed by a HTTP get(). The HTTP get occasionally fails and I’ve been able to trace this to a failed HTTP AUTHENTICATE, which appears to be an error from the website. However, it appears there’s no way to know the authentification succeeded or failed. There is no return code and OK doesn’t get set either. So I get various errors such as -9935 from the subsequent call to HTTP get(), which isn’t very helpful. Has anyone found an elegant workaround to find out if HTTP AUTHENTICATE() actually worked they can share? Thanks in advance, Paul ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

