Re: Port

Giganews Newsgroups
Subject: Re: Port
Posted by:  Remy Lebeau \(Indy Team\) (no.spam@no.spam.com)
Date: Mon, 4 Jan 2010

"Alan T" <alan_NO_SPAM_plt…@yahoo.com.au> wrote in message =
news:562488AFE19EE340alan_NO_SPAM_plt…@yahoo.com.au...

> How do I specify the port used by HTTP component?

You need to be more specific.  Do you want to set the Port that it =
connects to remotely, or that it binds to locally?

If the former, then you have to specify the Port in the URL that you =
pass to TIdHTTP, ie:

    IdHTTP.Get('http://<hostname>:<port>');

If the latter, then you have to use the BoundPort property, ie:

    IdHTTP.BoundPort :=3D ...;

--=20
Remy Lebeau (TeamB)

Replies

None

In response to

Port posted by Alan T on Tue, 5 Jan 2010