Announcement

Collapse
No announcement yet.

Web Server

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Web Server

    A long time ago I used Perl and had some software that would create a local web server through which I could test my Perl scripts.

    I went looking in the forum this morning to see if there was an example of a simple web server built from PowerBASIC. I got a zillion hits but didn't quite find what I was looking for.

    Either I need a better search term, or else there's no such example.

    As an alternative, can someone suggest a utility that will create an easy-to-use server? I don't want to spend a lot of time learning to use a new app - I'm just on a high-level search for some code or an app that will help fill in some blanks in my education.

  • #2
    Scott Slater had a good one, but I can't find it.
    Don't know if Perl would work. I have used Abyss.

    https://forum.powerbasic.com/forum/u...ple-web-server
    https://www.tesla.com/roadster

    Comment


    • #3
      Originally posted by Gary Beene View Post
      As an alternative, can someone suggest a utility that will create an easy-to-use server? I don't want to spend a lot of time learning to use a new app - I'm just on a high-level search for some code or an app that will help fill in some blanks in my education.
      I think WampServer might fit your needs. It uses a GUI for installing all components. An ideal starting point for a clean install.

      „Let the machine do the dirty work.“
      The Elements of Programming Style, Brian W. Kernighan, P. J. Plauger 1978

      Comment


      • #4
        Albert,
        I was thinking of something tiny, along the lines of "Tiny Server". Just something easy to install and play with.

        I did find a 2012 thread here ... "Simple Web Server" ... with some example code by Jim Dunn. I'll take a look at it.

        Jim (Dunn), do you have anything more recent that you've done? I saw your note about "before Gary" ... .... so I guess you beat me by time, and by skill set!

        Comment


        • #5
          lil http server is on here from Scott Slater
          http://www.summitcn.com/download.html
          https://www.tesla.com/roadster

          Comment


          • #6
            Hey Mike, Thanks for finding it and thanks to Scott as well for making it available.

            That links says v2.2 was the latest. The PowerBASIC site once had a file "ccsamp30.zip" that has the server in it ... which I assume is a v3.0. I have that file if anyone wants it.

            I hope to give it a try over the weekend, perhaps as well as another of the simple versions floating around, plus the code from Jim Dunn. Server Fest!




            Comment


            • #7
              What are you trying to do exactly, Gary? Doing Perl? Just toying around with a webserver?

              There are a couple of better suited solutions, depending on what you're trying to do:

              - Windows 7 Pro/10 Pro (and therefore I assume 8 Pro also) come with IIS. It's just deselected if installed with the default options. You can install it through Control Panel -> Add/Remove Programs -> Windows Components. Not sure how it's named there, might be WWW Publishing Service.

              - If you're after the Perl thing, use some virtualization client such as VMWare Workstation Player (which is free for personal use, IIRC), and install a Linux (server) distro of your choice there. For anything *nixish, that's a better choice than that awkward WAMP combination.

              Comment


              • #8
                Hi Knuth!

                Yep, just toying around. When I was having trouble with sTunnel, I realized that I didn't know much at all about servers - to help me understand why I was having troubles. I thought perhaps a little bit more understanding of how a server works would be helpful.

                I no longer use Perl - that's just where my limited experience with a local server came about.

                Comment


                • #9
                  And using sTunnel for Windows isn't a small subject, Creating certificates and such.
                  I use my own TCP server and also SQLitening with added AES 256 CBC encryption.
                  With SSL you get into certificates and I wanted any site to be able to easily connect to any other site.
                  I don't see why returning html couldn't be added to an established TCP server (which there are many on this site.)

                  If you want a very easy to use professional free html server https://aprelium.com/abyssws/
                  You would learn more with Knuth's above suggestions.

                  Note: You mentioned using .zip files in another thread.
                  Users can download files as strings from a TCP server to avoid Windows screaming about exe files.
                  https://www.tesla.com/roadster

                  Comment


                  • #10
                    Gary, as long as your playing around.
                    http://www.analogx.com/contents/down...w/Freeware.htm

                    I have also used his system cache adjuster for some older machine to give the machines a boost.
                    I also think the cache helps the SSD some too.
                    This cache refers to your file copy speeds.
                    I had this one time working on most our computer and never seen a glitch.
                    p purvis

                    Comment


                    • #11
                      Hey Paul!
                      AnalogX - I remember them. Somewhere in my past I recall them having software I liked, but I can't remember what it was. I'll try out their SimpleServer.

                      And, Knuth,
                      I've read a bit about IIS but I must admit to being put off by the learning curve for someone who just wants to play around. I no longer use Perl, other than some legacy CGI on my garybeene.com. I think it's a very interesting language and may someday play with it again, but that's unlikely to be any time soon.

                      And. Mike,
                      Abyss has been around a while, hasn't it? The names sound familiar. But, your comment brought up a point - I'm not interested in being a web server that provides service to anyone outside my local network. I'm just interested having a web server running on my PC that I can access locally. I don't have any giant plans regarding a server. It just came up in some other work I"m doing and I wanted to have a better understanding of how servers work.

                      Comment


                      • #12
                        Yes. I switched from Xitami to Abyss years ago, but now use online services.
                        Most ISP's want to host services so can't run a local server on port 80.

                        SQLiteningServer.Bas would be very useful in seeing how a tcp server was written as a service.
                        https://www.tesla.com/roadster

                        Comment


                        • #13
                          Gary. I would like some comments on that simpleserver if your can around to it.
                          He had a port redirecter too called mapper I believe.
                          p purvis

                          Comment


                          • #14
                            For just toying around, there really isn't that much to learn for IIS.

                            Install it including the management console, see [urk]https://www.howtogeek.com/112455/how-to-install-iis-8-on-windows-8/[/url], run mmc.exe, add the IIS snapin. If you don't configure it any further, you have an up and running webserver at but http://<machine name> and http://localhost. And a folder C:\inetpub\wwwroot, where you put your HTML files (and .aspx, if you enable it).

                            Comment


                            • #15
                              I usually just use a copy of Python for any testing of web services now (in either linux or windows, just do: python -m http.server 80). I had purchased Abyss, but there's a free version, it is really small and fast for the windows environment, but XAMPP PORTABLE for any real-world testing.
                              3.14159265358979323846264338327950
                              "Ok, yes... I like pie... um, I meant, pi."

                              Comment

                              Working...
                              X