CertificateError
PowerScript event
Description
Occurs when failed to validate the server certificate.
Event ID
|
Event ID |
Objects |
|---|---|
|
None |
WebBrowser controls |
Arguments
|
Argument |
Description |
|---|---|
|
errorText |
The error description. |
|
requestUrl |
The URL of the server currently being |
|
certificateInfo |
The certificate information which includes |
Return Values
0 — to continue browsing the current page.
1 — to cancel the browsing of the current page.
Examples
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
Integer CertificateError(string errorText, string requestUrl, string certificateInfo) { strMessage = "[CERTIFICATE_ERROR_TEXT]: " + "~r~n" strMessage += "ErrorText : " + errortext + "~r~n" strMessage += "RequestUrl : " + requesturl + "~r~n" strMessage += "Certificate : " + certificateInfo + "~r~n" strMessage += "Yes :to continue browsing the web page. No : to concel browsing the web page ~r~n" if MessageBox('server certificate error', strMessage, Question!, YesNo! ) = 1 then // Continue browsing the web page Ln_Result = 0 else // Cancel browsing the web page Ln_Result = 1 end if return Ln_Result } |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest