Returns or sets whether SSL is used when uploading or downloading images.
Boolean
| ActiveX Edition | Plug-in Edition | Mac Edition |
|---|---|---|
| Since V4.2.1 | Since V4.2.1 | Since V6.4 |
ObjectName. IfSSL
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.
HTTPPort property, HTTPDownload(), HTTPUploadThroughPost(), HTTPUploadThroughPut(), HTTPUploadAllThroughPostAsMultiPageTIFF(), HTTPUploadAllThroughPutAsMultiPageTIFF()
The following sample shows how to use IfSSL property.
JavaScript Sample:
<script language="javascript">
function btnUpload_onclick()
{
WebTWAIN.HTTPPort = 80;
WebTWAIN.IfSSL = false; // if 80 is the port number of non-secure port
/*
WebTWAIN.HTTPPort = 443;
WebTWAIN.IfSSL = true; // if 443 is the port number of secure port
*/
WebTWAIN.HTTPUploadThroughPost("127.0.0.1", 0, "/SaveToFile.php", "imageData.jpg");
if (WebTWAIN.ErrorCode != 0)
alert(WebTWAIN.ErrorString);
else //succeded
alert("Successful");
}
</script>
TWAIN ActiveX | TWAIN Plug-in | TWAIN Control | TWAIN SDK | Scanner COM
Software Configuration Management | Version Control | Source Control
Copyright © 2012 Dynamsoft Corporation. All Rights Reserved.