WebDevGetSecureError

Command groupFlag affectedReversibleExecute on clientPlatform(s)
External commandsYESNONOAll

Syntax

WebDevGetSecureError
 
()
 
Returns 
errortext

Description

Note: The flag is set according to whether Omnis was able to make a call to this external command.

This Web command is multi-threaded,allowing another thread to execute in the multi-threaded server while it runs. Note that the same socket cannot safely be used concurrently by more than one thread.

If you are using, or attempting to use, a secure connection to a server, the secure socket layer may return useful error text. When this occurs, the Web command returns the error code -1021. You can use WebDevGetSecureError to return this error text.

Omnis maintains a separate copy of the secure error text, for each thread in the multi-threaded server.

Example

Calculate
 
lServer
 as 
'my.pop3.server'

Calculate
 
lUserName
 as 
'myusername'

Calculate
 
lPassword
 as 
'mypassword'

 
POP3Connect
 
(
lServer
,
lUserName
,
lPassword
,
""
,
kTrue
)
 
Returns 
iSocket

If
 
iSocket
=-1021

  
WebDevGetSecureError
 
Returns 
lSecureErrorText

End If