🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Posting a XML file with HTTP

#3609
From: Hans Galema
Date: Tue, 05 Jul 2005 13:49
33 lines
1985 bytes
Jan wrote:

>>What component are you using ?

> I use Indy version 9.00.10 and BCB 5

That is a componentsuite which contains many components.
Which do you use here ?

>>Do you get the error in the catch block ?
> 
> No, on the Post method

> I don't think I need to pass a parameter list to the HTTP.

What do you mean with that ?

> The URL is quite normal:
> http://192.168.2.191/synchronize/schemainstance_import.aspx and 

If your error is: "Invalid argument to data encode." then the Post
is probably not done then the URL is not used. Try a non existing URL
and see what happens.

So there is no exeption thrown by Post on that error and ShowMessage()
in  your code is not invoked ? Is there a return-value for the Post
method that you have to consider ?

You could also tell if this are your first steps with
this component or that you used Post() a lot without problems
on other URL's.

Hans.
Technical Details
Message-ID: <42ca90d2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42ca6485@newsgroups.borland.com> <42ca6ce0$1@newsgroups.borland.com> <42ca75b0@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 15:49:31 +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> <42ca6ce0$1@newsgroups.borland.com> <42ca75b0@newsgroups.borland.com>
In-Reply-To: <42ca75b0@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: <42ca90d2$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1120571602 129.125.201.248 (5 Jul 2005 06:53:22 -0700)
Lines: 33
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail