🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Posting a XML file with HTTP

#3612
From: Remy Lebeau (TeamB)
Date: Tue, 05 Jul 2005 17:30
36 lines
1844 bytes
"Jan" <jan@jlcsoft.com> wrote in message
news:42ca6485@newsgroups.borland.com...

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

There is no such error message in Indy, or the VCL in general for that
matter.  Are you sure that the error message isn't actually the following
instead?

    Invalid argument to date encode.

Notice *date* vs. *data*.

What is the actual class type, not the text message, of the exception being
thrown?

    catch(const Exception &e)
    {
        ShowMessage(e.ClassName());
    }

If the error is actually an invalid *date* encoding, then that suggests that
either:

1) you did not specify a valid Request->Date, Request->Expires, or
Request->LastModified value

2) the server sent back a Response->Date, Response->Expires, or
Response->LastModified value that Indy does not understand.

Those are the only date-related values that TIdHTTP uses.


Gambit
Technical Details
Message-ID: <42cac53c$3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!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
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <42ca6485@newsgroups.borland.com>
Subject: Re: Posting a XML file with HTTP
Date: Tue, 5 Jul 2005 10:30:14 -0700
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <42cac53c$3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1120585020 68.69.17.41 (5 Jul 2005 10:37:00 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail