Re: Connect and Get

Giganews Newsgroups
Subject: Re: Connect and Get
Posted by:  Remy Lebeau (TeamB) (
Date: Mon, 24 Apr 2006

"Alan" <alanpltseNOSP…> wrote in message

> IdHTTP1.Connect('');

Get rid of that.  You should never call Connect() directly when using
TIdHTTP.  Get() and Post() call Connect() internally.

> IdHTTP1.Get('\mypicture.jpg');

That is not a valid URL.  You need to use this instead:


> I got an exception:
> EIdUnknownProtocol with message ".

That is because you did not specify the 'http://' portion of the URL.

> How do I know I connected successfully

You won't get an exception thrown.



In response to

Connect and Get posted by Alan on Mon, 24 Apr 2006