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 1:56 am




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Problems using SSL
PostPosted: Tue Jul 11, 2006 7:23 am 
Hello,

first I tried to use the Dynamic Web Twain on a server without SSL.
I used those settings:

f.DynamicWebTwain.HTTPPort = 80;
f.DynamicWebTwain.IfSSL = false;

Everything worked fine. After running the server with SSL, I changed the port to 443 and set ifSSL to true. This returns the following error:

-15029: Die Serververbindung konnte nicht hergestellt werden!
(-15029: Could not connect to server!)

Here is some code that calls the function HTTPUploadThroughPost:

Code:
var strActionPage = "/SaveToFile.php?namepk=abc";
var strHostIP = window.location.hostname;//the host's ip or name
var strImageName = "dummy.jpg";
var f = document.form;
f.DynamicWebTwain.HTTPPort = 443;
f.DynamicWebTwain.IfSSL = true;


var p = f.DynamicWebTwain.HTTPUploadThroughPost(strHostIP, 0, strActionPage, strImageName);
if(!p) {
alert(f.DynamicWebTwain.ErrorCode+": "+f.DynamicWebTwain.ErrorString);
return;
}


Could anyone please support me to make this work on SSL?

Best regards,
Stefan


Top
  
 
 Post subject:
PostPosted: Thu Jul 13, 2006 1:48 am 
Offline
User avatar

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

Your code is correct.

It is possible 443 port is blocked by your firewall. Can you open a https page on the same server from your browser?


Thanks.

_________________
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:
PostPosted: Mon Jul 17, 2006 11:15 pm 
Hi Catherine,

I can browse all other SSL-secure pages on this server, even port 443 is not blocked (told me the admin). I really have no idea what could be wrong with the server or the code of the site...

Best regards,
Stefan


Top
  
 
 Post subject:
PostPosted: Thu Jul 20, 2006 8:01 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
I can not see the problem so far.

But I am a littlle confused with your previous posting: "even port 443 is not blocked". Do you mean "even port 443 is blocked"? But if the port is blocked, SSL request can not get through. Would you please clarify it for me?

Also, does your web server have a public IP? If yes, would you please send the URL of your Web page to twainsupport@dynamsoft.com, so that we can connect to your server to look into this problem.


Thanks.

_________________
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:
PostPosted: Wed Jul 26, 2006 1:29 am 
Hello again,

we just solved the problem. It was no problem with the web twain itself. Our webserver wasn`t able to resolve his servername to the correct ip and posted the scanned images to another server. We found this bug, because we got some trouble by reading from the same server via SSL.

Thanks for your support,
Stefan


Top
  
 
 Post subject:
PostPosted: Wed Jul 26, 2006 5:33 pm 
Offline
User avatar

Joined: Mon Mar 07, 2005 11:11 pm
Posts: 866
:)

_________________
Robert
TWAIN Support Team
http://www.dynamsoft.com/
TWAIN ActiveX/Plug-in HTTP Control/SDK & TWAIN ActiveX Control, Scanner SDK, Component
Software Configuration Management | SCM Solution


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

It is currently Tue May 22, 2012 1:56 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:  

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