Make a cheap web server with simple no-CGI read write on port 80

Andre Garzia andre at andregarzia.com
Tue Feb 12 12:49:05 EST 2008


Jean,

Been there too. Check http://andregarzia.com/RevOnRockets for a 100%
transcript web server :-D

Cheers
andre

On 2/12/08, delorme <jm.delorme at wanadoo.fr> wrote:
>
> Hi from France!
>
> The idea of this cheap html server came from "chat server" demo stack.
> I tried, it works quite fine.
> Next is a sum-up:
>
> On Openstack
> .  accept connections on port 80 with message GotAConnection
>
> on GotAConnection aSocket
> .  read from socket aSocket for 1 line
> .  analyze received line (GET or POST)
> .  read from socket aSocket with message GotNextLines
>
> on GotNextLines aSocket , ReceivedLines
> .  Analyze ReceivedLines
> .  Do any processing you want with the user request
> .  Make TheHtmlAnswer from pre-made file + replaced text (wanted GET file ou
> POST answer)
> .  write TheHtmlAnswer to socket
>
> Any distant web browser then gets the requested .html files (as forms with
> submit buttons), or POST anwsers after button clicks (submits) in previous
> sent forms.
>
> Is'nt life easy?
> The only limit is that only html text is replied (no image) because no
> Apache server is used.
> Also have to record socket connections context in a gSocketConnectionsTable
> because many connections are available (which .htm file must be sent back
> when GotNextLines?).
> Thank you for your feedback and own return on experience about making a web
> server from Revolution.
>
> Jean-Marc
> --
> View this message in context: http://www.nabble.com/Make-a-cheap-web-server-with-simple-no-CGI-read-write-on-port-80-tp15434481p15434481.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>


-- 
http://www.andregarzia.com All We Do Is Code.



More information about the use-livecode mailing list