1. Samuel Sanchez Avila
  2. PowerBuilder
  3. Friday, 12 November 2021 19:55 PM UTC

Hello

i have a question, webbrowser object works fine with https pages, but for those https that are not certificated... it show Page failed to load. error -7 time out,

Is there a way to set certificate = false in webbrowser objects or something like that??

 

my code is: 

 

       wb_1.navigate("https://www.example.com")

 

thanks..

Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 17 November 2021 03:42 AM UTC
  2. PowerBuilder
  3. # 1

HI Samuel,

Does it work well with HTTP page? Where did you get the error -7? Is it from the HTTPS page itself? What’s the detailed error when accessing the same HTTPS page on Chrome? It seems to be a web page/web server related issue.

Please make sure the HTTPS port is allowed on firewall. Below articles is HTTPS timeout related articles for your reference.
https://stackoverflow.com/questions/25942761/iis-8-https-require-ssl-causes-timeout-error
https://serverfault.com/questions/89399/https-timeout-while-http-works

Regards,
ZhaoKai

Comment
There are no comments made yet.
Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Monday, 15 November 2021 03:44 AM UTC
  2. PowerBuilder
  3. # 2

Hi Samuel,

If the site has an invalid or expired certificate. Please handle the webbrowser's CertificateError event and return 0 if you want to continue browsing this site.

Please refer to PowerBuilder online help below for more details about the CertificateError event.
https://docs.appeon.com/pb2019r3/powerscript_reference/ch02s03s15.html


Regards,
Kai

Comment
  1. Samuel Sanchez Avila
  2. Tuesday, 16 November 2021 16:33 PM UTC
Hello thanks for that tip, it works when i use the navigate function for second time, but at the first try of calling the web page, im still getting error -7, after that, it works with the web page with some delay of 3-5 seconds... Any tip for error -7 at the first navigate?

  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.