[twsocket] TWSocket

2006-05-15 Thread Stefan Blankenagel
Hi, I am writing a little program wchich is polling another program using TWSocketServer. For testing purposes I press a button which connects to the other program: procedure TForm1.Button1Click(Sender: TObject); begin if icsWSocket.State <> wsClosed then icsWSocket.Close; if icsWSocket

[twsocket] Hint for HTTP Server

2006-05-15 Thread Stefan Blankenagel
Hello, how can I optimize following code statement: ClientCnx.AnswerPage( Flags, '', NO_CACHE, sitename_system, nil, ['NOW', DateTimeToStr(Now), 'TITLE

[twsocket] Example for protecting a page with password ?

2006-05-04 Thread Stefan Blankenagel
Hi, has anyone an example how a page can be protected with a password ?? Please post it or mail it to me. thanks Stefan -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

[twsocket] HTTPserver Template

2006-05-03 Thread Stefan Blankenagel
Hi, is it possible or has someone realized some templates with HTTPServer component that also contains a variable ?? For example you normally have a variable <#DEVICE> in a table row all devices are listed at this position. But it would also be great to handle over a variable like <#DEVICE 2>

Re: [twsocket] Problem with HTTP-server

2006-05-02 Thread Stefan Blankenagel
Problem solved. I called the wrong function starting the HTTP server and so TMyHTTPConnection was not allocated to clientclass. thanks Stefan -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http

Re: [twsocket] Problem with HTTP-server

2006-05-02 Thread Stefan Blankenagel
> What is the exact exception message. I guess you didn't respect the class > hierarchy. You must derive your class from THTTPConnection as > TMyHTTPConnection does in the demo. You also has to assign you class to > THttpServer.ClientClass. Well the TMyHTTPConnection is derived form THTTPConnecti

[twsocket] Problem with HTTP-server

2006-05-02 Thread Stefan Blankenagel
Hi, I am programming a http server with the ics components. I took the example webserver for my software. I want to use templates with tables and there is a function formdatagetrow. I also implemented this into my software but every time if I call the webpage I get an exception EInvalidCast. T