TWAIN ActiveX Control, Plug-in, Scanner SDK, Component, HTTP Control/SDK

Dynamsoft TWAIN Products

Support Community for TWAIN Control/Component/SDK for Scanning Solutions
* Login   * Register
* FAQ    * Search

It is currently Tue May 22, 2012 2:29 am




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: SSL problem
PostPosted: Mon Nov 08, 2010 6:00 am 
Offline

Joined: Thu Mar 04, 2010 4:01 am
Posts: 4
Hi,

We use Dynamic Web Twain ActiveX component to upload scanned documents. The problem is with SSL connections. In code, we specified as IsSSL=true and secure port as 443 (which is correct) but it does not work. Here is the code fragment:

HostAddress = "myapp.test.com";
frmScan.DynamicWebTwain1.HTTPPort = "443";
frmScan.DynamicWebTwain1.IsSSL = true;
result = frmScan.DynamicWebTwain1.HTTPUploadThroughPost(HostAddress, 0, "/MyActionPage.aspx", "MyScannedFile.jpg");

"result" is false and ErrorString tells something like "http://myapp.test.com:443/MyActionPage.aspx cannot be accessed" (the message indicates that the protocol is HTTP but not HTTPS. When I copy & paste this address to address bar of a browser, I get same error. But when I replaced the "http://" part with "https://" everything works fine)

When I check the requests made by the browser using Fiddler Proxy Debugger program, I see that Dynamic Web Twain component trying to use "HTTP" protocol and 443 port number attached to host address to upload file:

Protocol: HTTP
Host: myapp.test.com:443

Everything seems fine with the post operation except protocol. How can I switch the protocol to HTTPS? Is there anything we should do other than setting IsSSL=true and HTTPPort="443" ?


Top
 Profile  
 
 Post subject: Re: SSL problem
PostPosted: Mon Nov 08, 2010 7:07 pm 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
Hi yilmazumit,

Thank you for the detailed information.

Would you please replace the following line:
Code:
frmScan.DynamicWebTwain1.IsSSL = true;

to
Code:
frmScan.DynamicWebTwain1.IfSSL = true


and try again?

For more info, please check out the link below:
http://www.dynamsoft.com/help/TWAIN/Web ... 0IfSSL.htm

Please keep us updated on the issue.

Best regards.

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject: Re: SSL problem
PostPosted: Mon Nov 08, 2010 10:56 pm 
Offline

Joined: Thu Mar 04, 2010 4:01 am
Posts: 4
I replaced "IsSSL" with "IfSSL" and problem solved. Great support! Thank you :)


Top
 Profile  
 
 Post subject: Re: SSL problem
PostPosted: Tue Nov 09, 2010 2:22 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
Hi yilmazumit,

Great to know the issue has been resolved. :-)

Best regards.

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

It is currently Tue May 22, 2012 2:29 am


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Copyright © 2010 Dynamsoft Corporation. All Rights Reserved. | Knowledge Base | Source Control Blog