Sets the security mode to use when exchanging data with a remote server. This function is very practical to switch programmatically between secure an insecure mode without the need to modify any other function calls.
WebAPI.bdh
WebSetSecurity(in nSecurity: number): boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
nSecurity |
Value can assume one of the following:
|
dcltrans transaction TWebSecure begin WebUrl("http://standardhost/gmo/products.htm", 5.45); WebSetSecurity(WEB_SECURITY_SSL); WebUrl("http://standardhost/gmo/images/backpack.gif", 0.01); WebUrl("http://standardhost/gmo/images/boots.gif", 5.28); WebUrl("http://standardhost/gmo/products.htm", 9.06); WebSetSecurity(WEB_SECURITY_NONE); WebUrl("http://standardhost/gmo/images/socks.gif", 0.11); WebUrl("http://standardhost/gmo/images/shorts.gif", 0.19); // This URL always is requested through SSL due to HTTPS scheme WebUrl("https://standardhost/gmo/index.html", 0.45); end TWebSecure;
WebSecure01.bdf, WebSecure02.bdf