Got an idea for enhancing PureBasic? New command(s) you'd like to see?
-
wayne-c
- Enthusiast

- Posts: 337
- Joined: Tue Jun 08, 2004 10:29 am
- Location: Zurich, Switzerland
Post
by wayne-c »
Please add the following flags to the
WebGadget:
Code: Select all
#PB_HTTP_NoSSLCheck
#PB_HTTP_WeakSSL
Without these it is
not possible to connect to
self-signed certificates for testing purposes!
As you walk on by, Will you call my name? Or will you walk away?
-
wayne-c
- Enthusiast

- Posts: 337
- Joined: Tue Jun 08, 2004 10:29 am
- Location: Zurich, Switzerland
Post
by wayne-c »
This does the trick:
Code: Select all
SetEnvironmentVariable("WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS", "--allow-insecure-localhost --ignore-certificate-errors")
OpenWindow(0, 0, 0, 800, 600, "Edge insecure localhost", #PB_Window_SystemMenu | #PB_Window_MaximizeGadget | #PB_Window_MinimizeGadget | #PB_Window_SizeGadget | #PB_Window_ScreenCentered)
WebGadget(0, 0, 0, 800, 600, "https://localhost/", #PB_Web_Edge)
Repeat
e = WaitWindowEvent()
Until e = #PB_Event_CloseWindow
Credits to
https://www.purebasic.fr/english/viewto ... 50#p618050
and reference
https://learn.microsoft.com/en-us/micro ... tnetcsharp
As you walk on by, Will you call my name? Or will you walk away?