Vice Underdogs

Scripting => Script Showroom => Topic started by: stormeus on May 17, 2012, 02:07:48 am

Title: SqHTTP: Socket-Based HTTP Server
Post by: stormeus on May 17, 2012, 02:07:48 am
Became extremely bored, wrote an HTTP server using Squirrel sockets over the course of two days. The server supports:

The purpose of the server is to provide a limited form of providing web services to scripters directly from their game servers, such as a stats panel and remote administration, and is not suitable for forums, transmitting files, and probably some other complex things I couldn't be arsed to script into the server. ::)

I don't anticipate this server script taking off any time in the near future, so I won't be providing much support for it, though it may prove to be useful for any projects I do in the future, and possibly for someone else as well.

Without the example pages provided, the server is 603 lines long.

Download (1.0.0)
http://stormeus.vicelegends.com/SqHTTP.7z
Title: Re: SquirrelHTTP: A Simple HTTP Socket Server
Post by: Shadow on May 17, 2012, 05:56:49 am
What can I say.. Excellent as everytime.
Title: Re: SquirrelHTTP: A Simple HTTP Socket Server
Post by: Thijn on May 17, 2012, 07:38:08 am
I wanted the first post :'(

Very very very nice work :)
Title: Re: SquirrelHTTP: A Simple HTTP Socket Server
Post by: morphine on May 17, 2012, 08:23:55 am
Interesting.
Title: Re: SquirrelHTTP: A Simple HTTP Socket Server
Post by: stormeus on May 17, 2012, 10:20:34 am
Heads up, after copying this script verbatim, fixing function names, and testing it in LU, I found that the server will NOT WORK verbatim in LU.
Title: Re: SquirrelHTTP: A Simple HTTP Socket Server
Post by: stormeus on May 19, 2012, 03:30:13 am
Updated to 1.0.0, introducing:
Title: Re: SquirrelHTTP: A Simple HTTP Socket Server
Post by: Thomas on June 24, 2018, 03:12:26 pm
Updated to 1.0.0, introducing:
  • POST support
  • Forming pages from script files (examples provided in link)
  • Proper query strings (?param1=value1&param2=value2)
  • Small aesthetic/performance modifications
  • Change of name to SqHTTP
Bump!

Do you still have the live link to this? i am up to something.
Title: Re: SqHTTP: Socket-Based HTTP Server
Post by: stormeus on June 24, 2018, 11:45:08 pm
Nah, I think the files I had for this are long gone, sorry.
Title: Re: SqHTTP: Socket-Based HTTP Server
Post by: Thomas on June 25, 2018, 04:03:26 pm
Nah, I think the files I had for this are long gone, sorry.

Can you atleast give me the philosophy behind a squirrel socket to use it as a listener, because after all these years i forgot about this crap. ._.