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: 793
» Latest member: salisy
» Forum threads: 212
» Forum posts: 2,221

Full Statistics

Online Users
There are currently 30 online users.
» 0 Member(s) | 28 Guest(s)
Bing, Google

Latest Threads
Creation of SB-Neuron. Ou...
Forum: Discussion
Last Post: AbsoluteBeginner
10-29-2025, 11:40 AM
» Replies: 106
» Views: 24,822
New project
Forum: Discussion
Last Post: litdev
10-13-2025, 09:09 AM
» Replies: 2
» Views: 168
LDGeography.GetAllCountri...
Forum: Extensions
Last Post: litdev
10-05-2025, 12:33 PM
» Replies: 5
» Views: 350
TCP/IP Socket Programming
Forum: Extensions
Last Post: litdev
09-27-2025, 03:36 PM
» Replies: 23
» Views: 2,648
Hi everyone
Forum: Discussion
Last Post: z-s
09-25-2025, 08:14 AM
» Replies: 0
» Views: 131
Prototype for 3D Small Ba...
Forum: Discussion
Last Post: sm4llprogrammer2008
09-24-2025, 09:50 PM
» Replies: 0
» Views: 173
Really great announcement...
Forum: Discussion
Last Post: sm4llprogrammer2008
09-24-2025, 09:41 PM
» Replies: 4
» Views: 462
Challenge 14 - Rainbow
Forum: Challenges
Last Post: martmen
09-20-2025, 01:42 PM
» Replies: 5
» Views: 457
Small Basic super slow ??
Forum: Standard Small Basic
Last Post: sm4llprogrammer2008
09-14-2025, 11:07 PM
» Replies: 27
» Views: 3,401
Sudoku Solver Publishe...
Forum: Standard Small Basic
Last Post: The Old Guy
09-01-2025, 06:20 AM
» Replies: 7
» Views: 628

 
  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