Lianja
Lianja
Example: Http.GetServerCert method
Demonstrates how to call the GetServerCert method.Chilkat Lianja Downloads
llSuccess = .F.
loHttp = createobject("CkHttp")
loCert = createobject("CkCert")
llSuccess = loHttp.GetServerCert("chilkatsoft.com",443,loCert)
if (llSuccess = .F.) then
? loHttp.LastErrorText
release loHttp
release loCert
return
endif
? loCert.SubjectDN
? loCert.ValidToStr
// Output:
// CN=*.chilkatsoft.com
// Wed, 10 Jun 2026 23:59:59 GMT
release loHttp
release loCert