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
> 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
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
> 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
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
> 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:
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