(Synapse THTTPSend->Document) TMemoryStream to AnsiString

THTTPSend *http=new(THTTPSend);
AnsiString s;
http->HTTPMethod("GET", "http://ide.as-to.eu/");
s.SetLength(http->Document->Size);
http->Document->Position = 0;
http->Document->Read(s.c_str(), s.Length());
Caption=s;

Leave a Reply