Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"EConvertError" on IdHTTP.Get("url"), Indy component

429 views
Skip to first unread message

Alexandre Sá

unread,
Nov 8, 2004, 7:47:55 AM11/8/04
to
Hi Everyone, I hope you could help me... I was trying do capture a url
content by a Get method using IdHTTP Indy component, and I got the exception
"EConvertError" with the message "Invalid argument to date encode" (for any
Indy version).

The mystery is that if I use the url 'http://www.google.com', like
> memo.Text := http.Get('http://www.google.com');
the EConvertError is not raised.

But if I use the url 'http://fotolog.terra.com.br/praias', the exception is
raised.

I think the url 'http://fotolog.terra.com.br/praias' points to a some
special kind of web content, because if we use it with a ':F' at the end,
like 'http://fotolog.terra.com.br/praias:F', the browser display another
page... even if we put ':1' or ':2'... it seems to work like some kind of
special parameters, therefore does 'http://fotolog.terra.com.br/praias' seem
to be a special web page? How can I get it content?

I´d be thankful for any advice.
Alexandre Sá


Remy Lebeau (TeamB)

unread,
Nov 8, 2004, 1:29:28 PM11/8/04
to

"Alexandre Sá" <as...@cin.ufpe.br> wrote in message
news:418f...@newsgroups.borland.com...

> Hi Everyone, I hope you could help me... I was trying do capture
> a url content by a Get method using IdHTTP Indy component, and
> I got the exception "EConvertError" with the message "Invalid
> argument to date encode" (for any Indy version).

Works fine for me.

> But if I use the url 'http://fotolog.terra.com.br/praias', the
> exception is raised.

I just tried that URL and it worked fine for me.


Gambit


Martin James

unread,
Nov 8, 2004, 3:18:40 PM11/8/04
to
> I just tried that URL and it worked fine for me.
>

Me too, with 9.0.14, some HTML text below from the quoted URL.

Rgds,
Martin


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script language="JavaScript">
<!--
document.focus();
//-->
</script>
<title>Praias e Cachoeiras - Terra Fotolog</title>
<STYLE>
<!--
a { text-decoration: none;
}
a:hover { text-decoration: underline;
}
.terra {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
color: #000080;
text-decoration: underline
}
.titulo {
font-family: Verdana, sans-serif;
font-size: 24px;
font-weight: bold;
text-decoration: none;
padding-left:10px;
padding-top:5px;
color: #000080
}
.subtitulo {
font-family: Verdana, sans-serif;
font-size: 14px;
font-weight: bold;
color: #000080
}
.


Alexandre Sá

unread,
Nov 9, 2004, 5:51:59 PM11/9/04
to
Thank anyway, Martin and Remy...
It will help to me know that the problem probably is on my Delphi and/or
Indy.
Think I“ll need to see under the Indy source code where the exception is
raised to understand what“s happening wrong, because I“ve tried both the
newest versions of the www.indyproject.org site.
Best regards,
Alexandre Sį

"Martin James" <mjames...@dial.pipex.com> wrote in message
news:418f...@newsgroups.borland.com...
>

Remy Lebeau (TeamB)

unread,
Nov 9, 2004, 5:43:58 PM11/9/04
to

"Alexandre Sá" <as...@cin.ufpe.br> wrote in message
news:4191...@newsgroups.borland.com...

> It will help to me know that the problem probably is
> on my Delphi and/or Indy.

My guess would be that you are using a foreign date/time format on your
machine that the Internet date/time values cannot be translated into when
needed.


Gambit


Alexandre Sá

unread,
Nov 10, 2004, 7:04:37 AM11/10/04
to
But I´m still missnderstanding... if the problem is on the diference between
the date/time format of my machine and internet, why with the url
"http://www.google.com.br" it works fine?

"Remy Lebeau (TeamB)" <no....@no.spam.com> wrote in message

Alexandre Sá

unread,
Nov 10, 2004, 7:13:22 AM11/10/04
to
Ok, ok! :)
My Delphi is installed for a few years ago, and I didn´t remember that the
option "Debugger Options > Stop on Delphi Exceptions" was checked.
I´m so sorry...
Thank a lot...
Best regards,
Alexandre
0 new messages