Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Jul : TidHTTP.Post with TStrings

www.cryer.info
Managed Newsgroup Archive

TidHTTP.Post with TStrings

Subject:TidHTTP.Post with TStrings
Posted by:"Rick Roen" (ri..@lakevalleyseed.com)
Date:Thu, 21 Jul 2005 07:00:15

D7 Indy 9.00.10

I'm having a problem with Posting from an idHTTP component.

This works:
XMLResponse.XML.Text := idHTTP.Post( <url>, StringStream )

This does not work:
XMLResponse.XML.Text := idHTTP.Post( <url>, XMLRequest.XML )

I am creating an XML request in the XMLRequest ( IXMLDocument).  If I copy
the XMLRequest.XML.Text to the StringStream, then the Post works fine; if I
use original XMLRequest.XML (which is of type TStrings), then I get an
access failure with a write address of 0000000000.

Any ideas of what is wrong?

Thanks,
Rick

Replies:

www.cryer.info
Managed Newsgroup Archive