01-15-2021, 07:36 PM
(01-15-2021, 04:45 PM)zarkogajic Wrote: So, would it be enough to let them specify values for the IDHTTP's ProxyParams property (TIdProxyConnectionInfo) ?
If they are using an HTTP proxy, then yes.
But if they are using a SOCKS proxy, then you will have to assign a TIdIOHandlerStack component (for non-HTTPS requests) or TIdSSLIOHandlerSocketBase-derived component like TIdSSLIOHandlerSocketOpenSSL (for HTTPS requests) to the TIdIOHandler.IOHandler property, and then you can assign a TIdSocksInfo component to the TIdHTTP.IOHandler.TransparentProxy property.
This same technique can also be used for HTTP proxies, replacing TIdSocksInfo with TIdConnectThroughHttpProxy (but I would not recommend doing that for TIdHTTP, since it has its own built-in HTTP proxy support).

