You are not logged in.
Pages: 1
hi, I have a problem with secTLSSelfSigned.
The client returns always an error code 666.
FHTTPClient.TLS.Enabled:=true;
FHTTPClient.TLS.IgnoreCertificateErrors:=true;
StatusCode := FHTTPClient.Request(FBaseURL, 'POST',10 ,'Content-Type: application/json'#13#10 + 'Accept: application/json',RequestBody);
// StatusCode always 666
Server ist created like this:
HttpServer := TRestHttpServer.Create('8080', [RestServer], '+', useBidirSocket, 32, secTLSSelfSigned );
what am I doing wrong?
Offline
The tests with secTLSSelfSigned do pass here.
There is not enough information in your code.
Use a gist or a download link please to put some reproducible example.
Can you try to debug a little and find out where the client fails?
Offline
Pages: 1