We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Network file transfer
#1
While reinstating website and extension downloader, I found that various webserver requests, like ftp etc failed.  The solution was to set the following (C#) before starting web requests.
Code:
WebRequest.DefaultWebProxy.Credentials = CredentialCache.DefaultCredentials;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
I then tried one of my old programs that uses a web resource image and it failed.  It was the same SSL security issue.  The same fix, implemented with LDNetwork.SetSSL().  The following SB now works, even with standard SB ImageList web access for networked resources.
Code:
LDNetwork.SetSSL()
image = ImageList.LoadImage("https://litdev.uk/game_images/rubic.png")
GraphicsWindow.DrawImage(image,0,0)
This should open up a lot of options for networked resources, and is available with LitDev Beta version (1.2.25.0).
[-] The following 2 users Like litdev's post:
  • AbsoluteBeginner, stevantosic
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)