🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3607

Re: Posting a XML file with HTTP

#3607
From: Hans Galema
Date: Tue, 05 Jul 2005 11:16
26 lines
1664 bytes
Jan wrote:

> I try to post a XML file but get always the error:
> Invalid argument to data encode.

What component are you using ?
On which statement do you get the error ?
Do you get the error in the catch block ?

>       TStringList *LIpost = new TStringList;

>           HTTP->Post(PathHttp, LIpost);

Well you are trying to post -the contents of- a TStringList.

> And here the XML file:
> 
> <schemainstances><schemainstance id="2851" schemamnemonic="product">
....
> </schemainstance></schemainstances>

Please first try to post a file or TStringList that only has a line
of five and does not contain CDATA. Is that possible ? Is it
only whith this specific file ?

Hans.
Technical Details
Message-ID: <42ca6ce0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.inode.at!reader.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail
References: <42ca6485@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,23338d9238b4b121
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Tue, 05 Jul 2005 13:16:08 +0200
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: Posting a XML file with HTTP
References: <42ca6485@newsgroups.borland.com>
In-Reply-To: <42ca6485@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.201.248
Message-ID: <42ca6ce0$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1120562400 129.125.201.248 (5 Jul 2005 04:20:00 -0700)
Lines: 27
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.inode.at!reader.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail