Does anyone know how to use SOCKS5 proxies via IE API?

myinternetempire

Senior Member
Joined
Oct 24, 2011
Messages
875
Reaction score
176
We have built an APP which relies on the internet explorer API, we are using "InternetSetOption" to set per session proxy.

Something like this:

options[1] = new INTERNET_PER_CONN_OPTION
{
dwOption = (int)INTERNET_PER_CONN_OptionEnum.INTERNET_PER_CONN_PROXY_SERVER,
Value = { pszValue = Marshal.StringToHGlobalAnsi(proxyServer) }
};



HTTP proxies work fine but when we try to use SOCKS5 it's not working for us. To use socks we tried this:

socks=server:port
AND
socks://socks=server:port

without any luck...

Does anyone have any experience getting SOCKS5 to work with InternetSetOption ?
 
Back
Top