Indy 10 TIdHTTP and Port number

Giganews Newsgroups
Subject: Indy 10 TIdHTTP and Port number
Posted by:  jeff.east…@somewhere.com
Date: Tue, 21 Dec 2004

I am a little confused about the use of the TIdHTTP component and custom
port numbers.
There is no property to set if I have a web server running on a custom port.

I have set up a web server on port 600.  Since I can't set the property in
any way, I call Connect with the port number as a parameter.  I check the
TIdHTTP object, and the Port is set to 600.  Then I call Get to get a test
page from the server, and when I do, I get a "Connection Refused" error.  I
again check the TIdHTTP object, and the Port has been switched back to 80 on
me.
Why is that?
And why isn't there simply a Port property to set like every other TCP
client component?

Thanks
Jeff

Replies