Question

I have a DataSnap server written in Delphi XE3, deployed as an ISAPI module with SSL.

I'm writing a client application for this server, but it has to be written in Delphi 2010 for now. I'm having trouble connecting to the server through HTTPS. I have no trouble connecting to the server through HTTP.

I can write a client in XE3 that connects through HTTPS and succeeds, so I know the server is working fine.

The error I receive is:

Protocol HTTPS can be used after an adequate instance of TDBXCommunicationLayer is registered with TDBXCommunicationLayerFactory.

I've googled the solution to a problem like this and was instructed to add DSHTTPLayer to the uses clause of my unit, and that works for HTTP, but it's not working for HTTPS.

Any ideas out there? Thanks a lot for your time.

Was it helpful?

Solution

I ended up using TIdHTTP and TIdSSLIOHandlerSocketOpenSSL components to connect via HTTPS. I parsed the JSON with a TJSONParser. Delphi 2010 doesn't support HTTPS through the TDSRestConnection.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top