Hi,
I am a newcomer to this list, and to the excellent ICS components.
I have a task to update an in-house utility program written many years ago
in Delphi. My task is to add support for Socks5 proxy connections. I am
new to programming for internet communication, but I'm the only one left
in my team with any Delphi experience... I am working with Delphi 7.
Advertising
The program basically has two communication parts to it - a telnet type
connection which is used for user interaction with a remote server and a
http socket connection which comes in to play for uploading or downloading
data using POST and GET commands.
I was quickly able to implement the telnet part using a TWSocket
component. This works successfully through the Socks proxy and I am very
happy with it. A particular point to note is that DNS resolution is done
by the proxy machine, which is a requirement of the project.
For the http part I am looking at using a THttpCli component. I am
experimenting using the OverbyteIcsHttpGet demo, setting up the Socks
properties on HttpCli1. It works if I provide the actual IP address of the
remote server, but not when I enter a url. It appears to use the local
machine for the DNS lookup, not the proxy.
Is there some way I can encourage it to use the proxy for DNS resolution?
Alternatively, how can I get the remote IP address from the existing
TWSocket connection? (PeerAddr only gives me the IP of the proxy server).
Any assistance with this issue will be much appreciated.
Thanks,
Colin
###########################################################################
This email is confidential and may contain information subject to legal
privilege. If you are not the intended recipient please advise us of our
error by return e-mail then delete this email and any attached files.
You may not copy, disclose or use the contents in any way.
The views expressed in this email may not be those of Gallagher Group
Ltd or subsidiary companies thereof.
###########################################################################
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be