Re: [twsocket] HtmlPageProducerToString in Delphi XE

2011-01-25 Thread Busai Péter
Hi Francois, Yes it works fine. Thanks! Peter 2011.01.25. 9:27 keltezéssel, Francois PIETTE írta: > Hello Péter, > > Thanks for your help. > I have updated the source code as follow. Please check if this works > for you before I commit the change to the repository. > > function THttpConnectio

Re: [twsocket] HtmlPageProducerToString in Delphi XE

2011-01-25 Thread Francois PIETTE
2011 9:24 PM Subject: Re: [twsocket] HtmlPageProducerToString in Delphi XE One possible solution, I defined a temporary RawByteString and now it returns correct result. I have tested it on DelphiXE and BDS2006. {* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Re: [twsocket] HtmlPageProducerToString in Delphi XE

2011-01-24 Thread Busai Péter
One possible solution, I defined a temporary RawByteString and now it returns correct result. I have tested it on DelphiXE and BDS2006. {* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *} function THttpConnection.HtmlPageProducerToString( const HtmlFile : String;

Re: [twsocket] HtmlPageProducerToString in Delphi XE

2011-01-24 Thread Busai Péter
For a fast workaround now I use TStringStream HeaderStream := TStringStream.Create; try Client.HtmlPageProducerToStream('header.html',nil,[ 'LOCATION', SessionData.Referer, 'ISADMIN',IfThen(SessionData.

[twsocket] HtmlPageProducerToString in Delphi XE

2011-01-24 Thread Busai Péter
Hi, I have problem using the above function in unicode compiler Just tried to include a content of a file to "servertime" document The content of header.html: Some headerline 1 Some headerline 2 Some headerline 3 and the result is: ICS WebServer Demo