Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

About TIdHTTP

Status
Not open for further replies.

IPOz

Programmer
Jul 11, 2001
109
CN
Is the following code right ?

procedure TForm1.Button2Click(Sender: TObject);
const
URL = 'var
ms : TMemoryStream;
hi : TIdHeaderInfo;
begin
if memo1.Text <> '' then
try
ms := TMemoryStream.Create;

hi.ContentType := 'text/xml';
IdHTTP1.Request := hi;

IdHTTP1.Post(URL,memo1.Lines,ms);
memo2.Lines.LoadFromStream(ms); // no response !
finally
ms.Free;
end;
end;
But i got nothing into memo2 !

Regards! ipo_z@cmmail.com
Garbage in,Garbage out
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top