Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IDHTTP.Get - "Socket Error #11001. Host not found""
#5
(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).

Reply


Messages In This Thread
RE: IDHTTP.Get - "Socket Error #11001. Host not found"" - by rlebeau - 01-15-2021, 07:36 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)