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!


Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 786
» Latest member: WilliamVar
» Forum threads: 212
» Forum posts: 2,220

Full Statistics

Online Users
There are currently 46 online users.
» 0 Member(s) | 44 Guest(s)
Bing, Applebot

Latest Threads
New project
Forum: Discussion
Last Post: litdev
10-13-2025, 09:09 AM
» Replies: 2
» Views: 44
LDGeography.GetAllCountri...
Forum: Extensions
Last Post: litdev
10-05-2025, 12:33 PM
» Replies: 5
» Views: 189
TCP/IP Socket Programming
Forum: Extensions
Last Post: litdev
09-27-2025, 03:36 PM
» Replies: 23
» Views: 2,134
Hi everyone
Forum: Discussion
Last Post: z-s
09-25-2025, 08:14 AM
» Replies: 0
» Views: 93
Prototype for 3D Small Ba...
Forum: Discussion
Last Post: sm4llprogrammer2008
09-24-2025, 09:50 PM
» Replies: 0
» Views: 122
Really great announcement...
Forum: Discussion
Last Post: sm4llprogrammer2008
09-24-2025, 09:41 PM
» Replies: 4
» Views: 371
Challenge 14 - Rainbow
Forum: Challenges
Last Post: martmen
09-20-2025, 01:42 PM
» Replies: 5
» Views: 360
Small Basic super slow ??
Forum: Standard Small Basic
Last Post: sm4llprogrammer2008
09-14-2025, 11:07 PM
» Replies: 27
» Views: 2,981
Sudoku Solver Publishe...
Forum: Standard Small Basic
Last Post: The Old Guy
09-01-2025, 06:20 AM
» Replies: 7
» Views: 516
Challenge 13 - Search uti...
Forum: Challenges
Last Post: martmen
08-29-2025, 10:13 AM
» Replies: 8
» Views: 796

 
  Network file transfer
Posted by: litdev - 09-02-2023, 05:27 PM - Forum: Extensions - No Replies

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).

Print this item

  Welcome
Posted by: litdev - 09-01-2023, 08:29 AM - Forum: Discussion - Replies (2)

Welcome to this Small Basic forum.

The idea of this forum is to provide a resource for questions and answers.

Please use this Discussion section for general Small Basic discussions.

Due the large number of spam users, we are relatively agressive banning and in some cases preventing acount activation.  If you are having trouble with activation, then please contact admin@litdev.uk.

Print this item