Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Dec : Re: HTTP Content Question
| Subject: | Re: HTTP Content Question |
| Posted by: | "Tom Russell" (tom.russell@nospam.com) |
| Date: | 21 Dec 2007 10:16:06 |
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:
>That is because you are adding the data as a single line to your
>TStringList. Use the Text property instead of the Add() method. That way,
>line breaks get parsed, ie:
>
> procedure TForm1.AdvGlowButton1Click(Sender: TObject);
> var
> MyString: TStringList;
> begin
> MyString := TStringList.Create;
> try
> MyString.Text := IdHTTP1.Get(Edit1.Text);
> AdvMemo1.Lines.AddStrings(MyString);
> finally
> MyString.Free;
> end;
> end;
>
>
>Gambit
>
>
Thanks for the tip. Unfortunately it does not return anything. And I really cannot see why it wouldn't?
Odd.