Results 1 to 5 of 5

Thread: Create a thinbasic webserver?

  1. #1

    Create a thinbasic webserver?

    Is it possible to setup a webserver in Thinbasic?

    for example, python it has integrated a webserver
    https://pythonbasics.org/webserver/

    then, the info can be displayed via browsers.

    can thinbasic be used as a http, webserver?


  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,102
    Blog Entries
    5
    Rep Power
    728
    Hi Mar,

    thank you for your question.

    I would say the best way to create HTTP server in Python is currently FastAPI:
    https://fastapi.tiangolo.com/

    Regarding thinBASIC and this task...:
    - you can use REST API server via CURL module
    - you can perform simple GET requests via INET_UrlGetString
    - you can use thinBASIC for server side CGI scripting

    ...but I would not recommend it at the moment for designing a HTTP web server.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  3. #3

    Red face

    Hi Petr,

    thank you for your information and tips about fastapi and thinbasic options and modules and commands.
    I started to learn about it...


    On the other hand, I read that you connected thinbasic to rust time ago.

    I have a question about rust/thinbasic...

    if the webserver were rust...is it possible to set in a rust route to go to thinbasic, then use thinbasic/oxygen(for all the programming), and then return the data to rust routes/html?

    in order to have the programming done in thinbasic/oxygenbasic, and the output/input via rust http server

    what do you think?

  4. #4
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,102
    Blog Entries
    5
    Rep Power
    728
    Hi Mar,

    while a bit unusual approach, definitely technically possible


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  5. #5

    Wink

    hi Petr,

    thank you

Similar Threads

  1. Is it possible to create a video with ThinBasic?
    By martin in forum thinBasic General
    Replies: 1
    Last Post: 15-11-2014, 12:30
  2. Using thinbasic to create & edit spreadsheet
    By peralta_mike in forum BIFF
    Replies: 2
    Last Post: 04-03-2013, 23:06
  3. how to create a hyperlink
    By martin in forum UI (User Interface)
    Replies: 3
    Last Post: 17-04-2011, 10:35
  4. How to create a new SDK?
    By Michael Hartlef in forum Turbo Delphi language SDK development
    Replies: 2
    Last Post: 30-11-2008, 13:46
  5. How to create a new thinBasic keyword in Delphi
    By ErosOlmi in forum Turbo Delphi language SDK development
    Replies: 6
    Last Post: 21-12-2006, 03:02

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •