| Dart Home | PowerTCP Web for ActiveX | Custom Development | Reply | PowerTCP Web for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Web for ActiveX Topic: HTTPS localhost error |
| User60 Posts: 5 Member Since: 04/26/02 |
posted April 26, 2002 11:26 PM I am testing the web tool for its https capabilities, and I am running into a problem. When I try to run this Powerbuilder code: ole_http.object.url = "https://localhost/index.html" ole_http.object.get(REF ls_data) I get "Error calling external function get..." I have tomcat running on port 443, and am able to load the above url in a browser no problem. Also, if I rewrite the url to get a secure page from a remote server, it works fine. The above also works if I try "http" on port 8080. Seems there is a problem getting the secure page locally. Any idea what might be happening? Thanks. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 27, 2002 1:37 PM I just tried our PageFetch sample against a secure WebServer on my localhost and it worked OK. Perhaps there is an error being thrown and you are not handling it? Try the sample and see what happens. Thanks, Tony Priest Dart Tech Support |
| User60 Posts: 5 Member Since: 04/26/02 |
posted April 28, 2002 5:16 PM I was able to trace the problem to a misconfigured ssl certificate. The cert name was not "localhost". When I changed it, everything worked fine. This doesn't explain why I got the error I did. I notice that PageFetch reports the error but doesn't bomb. Is this because you are checking the headers before actually getting the page? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 28, 2002 5:39 PM The pagefetch sample reports the error because it handles the error. You are probably not handling the error. Take a look at the ExternalException event for the ole_http control to see how we do it. Also, if you want to ignore invalid hostnames you need to play with the security settings. See the "Options" menu items for example code. Hope this helps! Tony |
| User60 Posts: 5 Member Since: 04/26/02 |
posted April 29, 2002 9:29 AM It does indeed help. Handling the ExternalException event stops the runtime error. I can't find any reference to this event in the online help file. What are the possible values for the action argument other than ExceptionIgnore? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 29, 2002 12:02 PM That's because it's not our event, it's PowerBuilder's. You'd have to check the PowerBuilder documentation. Tony |
| User60 Posts: 5 Member Since: 04/26/02 |
posted April 29, 2002 1:02 PM Of course! Sorry for the mistake, and thanks for all the great help. |
| Reply | PowerTCP Web for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|