TIdHTTPResponseInfo.FreeContentStream
TIdHTTPResponseInfo, See Also
Indicates if the object instance can free its ContentStream.
property FreeContentStream: Boolean;
Description
FreeContentStream is a Boolean property that indicates if the object instance can free the TStream resource allocated in ContentStream. FreeContentStream is set to True in the Create constructor, and insures that ContentStream will be released, if assigned prior to retrieving an HTTP response, in the Destroy method.
Under normal circumstances, FreeContentStream is not changed during the lifetime of the HTTP response. Set FreeContentStream to False when ContentStream is assigned manually, and the stream must continue to exist even after destruction of the HTTP response.
FreeContentStream 값이 기본으로 true로 되어 있기 때문에... 응답 후에 msLogin에 있는 내용 자동으로 삭제시킵니다.
박영목.월천 님이 쓰신 글 :
: IdHTTPServer1 로 웹서버 만드는 것... 쉬운 것 같아도 어려움이 제법 있네요...
:
: 게시판에도 없고... 궁금한 것 질문드립니다... 아시는 분만 답변 부탁드립니다.... ^^
:
:
";
:
: 1. 이미지를 넣고 싶어서... 이렇게 했더니 안되네요...
: 그래서... 하드 경로 주어도 안되고... 그래서 src=에 다른 웹서버의(http://...) 이런씩으로 주니까 되는 데...
: IdHTTPServer1 이것이 돌아가는 그 폴더의 이미지를 나타내고 싶은 데.... 느낌으로는 IdHTTPServer1에
: 어떤 경로를 넣어야 할 것 같은 생각이 더는 데...???? 모르겠습니다.
:
:
: TMemoryStream *msLogin = new TMemoryStream();
:
: 2. msLogin 메모리 할당하고 해제를 하지 않아도 되는지? 해제하면... 동작이 이상한 것 같던데... 몇주전에
: 해서 생각이 잘 안남..
:
:
: 3. 웹에서 영문자를 입력해서 이곳으로 넘기면 잘 오는 데...
: 한글을 입력해서 넘기면... %B1%C0 이런씩으로 IdHTTPServer1 여기로 넘어오네요...
: 억지로 하면 어떻게던 변환하겠는 데... 간단한 방법이 있을 것 같은데.... ???
:
:
:
: 아래의 asHTMLLogin += "