IfSSL Property
Description
Returns or sets whether SSL is used when uploading or downloading images.
Data type
Boolean
ActiveX Edition | Plug-in Edition | Mac Edition |
---|---|---|
Since V4.2.1 | Since V4.2.1 | Since V6.4 |
Syntax
ObjectName. IfSSL
Remarks
The default value is FALSE. This property is used with HTTPPort property.
IfSSL |
HTTPPort |
Actions |
TRUE | The value of HTTPPort property must be the port number of secure port |
The images will be uploaded or downloaded via SSL. |
FALSE | The value of HTTPPort property must be the port number of non-secure port |
The images will be uploaded or downloaded via non-SSL. |
When an error occurs and IfThrowException property is TRUE, an exception will be thrown. Check ErrorCode property and ErrorString property for error information.
See also
HTTPPort property, HTTPDownload(), HTTPUploadThroughPost(), HTTPUploadThroughPut(), HTTPUploadAllThroughPostAsMultiPageTIFF(), HTTPUploadAllThroughPutAsMultiPageTIFF()
Samples
The following sample shows how to use IfSSL property.
JavaScript Sample:<script language="javascript"> function btnUpload_onclick() { Webcam.HTTPPort = 80; Webcam.IfSSL = false; // if 80 is the port number of non-secure port /* Webcam.HTTPPort = 443; Webcam.IfSSL = true; // if 443 is the port number of secure port */ Webcam.HTTPUploadThroughPost("127.0.0.1", 0, "/SaveToFile.php", "imageData.jpg"); if (Webcam.ErrorCode != 0) alert(Webcam.ErrorString); else //succeded alert("Successful"); } </script>
Copyright © 2012 Dynamsoft Corporation.All Rights Reserved.