Re: [twsocket] Set Connection Header with HttpAppServer

2014-08-01 Thread Stefan Göppert
Hi, great - that works! ​Best regards​ 2014-07-31 9:01 GMT+02:00 Angus Robertson - ​​ Magenta Systems Ltd >: > > yes the Header Connection is set twice. Here is my code: > > Well yes, but it's not set the same twice. > > The HttpConnection (and UrlHandler) class has a KeepAlive property, if y

Re: [twsocket] Set Connection Header with HttpAppServer

2014-07-31 Thread Angus Robertson - Magenta Systems Ltd
> yes the Header Connection is set twice. Here is my code: Well yes, but it's not set the same twice. The HttpConnection (and UrlHandler) class has a KeepAlive property, if you set it false before sending the answer, then 'Connection: Close' will be sent automatically. Angus -- To unsubscrib

Re: [twsocket] Set Connection Header with HttpAppServer

2014-07-30 Thread Stefan Göppert
Hi, yes the Header Connection is set twice. Here is my code: procedure TUrlHandlerSynchronize.Execute; var Headers : String; begin Headers := 'Connection: close' + #13#10; AnswerString('200 OK', 'application/json;charset=utf-8',Headers,'{"status":"ok","msg":""}'); Finish; end; The resul

Re: [twsocket] Set Connection Header with HttpAppServer

2014-07-30 Thread Angus Robertson - Magenta Systems Ltd
> yes I know, but if I set the Header manual to close it is set > twice?! > > > > is it possible to set the returning header from an > > HttpAppServer to > > > close (instead of Keep-Alive)? How can I do this? So you are already adding the correct header to close the connection, and your proble

Re: [twsocket] Set Connection Header with HttpAppServer

2014-07-30 Thread Stefan Göppert
Hi, yes I know, but if I set the Header manual to close it is set twice?! 2014-07-30 19:57 GMT+02:00 Angus Robertson - Magenta Systems Ltd < an...@magsys.co.uk>: > > is it possible to set the returning header from an HttpAppServer to > > close (instead of Keep-Alive)? How can I do this? > > You

Re: [twsocket] Set Connection Header with HttpAppServer

2014-07-30 Thread Angus Robertson - Magenta Systems Ltd
> is it possible to set the returning header from an HttpAppServer to > close (instead of Keep-Alive)? How can I do this? You can add any headers you like when calling AnswerPage for TUrlHandler class. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http:

[twsocket] Set Connection Header with HttpAppServer

2014-07-25 Thread Stefan Göppert
Hi, is it possible to set the returning header from an HttpAppServer to close (instead of Keep-Alive)? How can I do this? -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overb