Dynamsoft Home|Product Home

HTTPPort

Description

Sets or returns the port number of the HTTP server.

Data type

Integer

Syntax

ObjectName. HTTPPort

Remarks

The default HTTP port number is 80. This property is used with IfSSL property.

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

IfSSL property, FTPUserName property, FTPPassword property, FTPPort property, ProxyServer property, FTPDownload, FTPUpload(), HTTPPassword property, HTTPUserName property, HTTPDownload(), HTTPUploadThroughPut(), HTTPUploadThroughPost()

Samples

JavaScript Sample:
<SCRIPT LANGUAGE="javascript">

function btnUpload_onclick()
{ frmScan.DynamicWebTwain1.HTTPPort = 80; frmScan.DynamicWebTwain1.IfSSL = false; // If 80 is the port number of non-secure port /* frmScan.DynamicWebTwain1.HTTPPort = 443; frmScan.DynamicWebTwain1.IfSSL = true; // If 443 is the port number of secure port */ ... } </SCRIPT>