myinternetempire
Senior Member
- Oct 24, 2011
- 875
- 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
ort
AND
socks://socks=server
ort
without any luck...
Does anyone have any experience getting SOCKS5 to work with InternetSetOption ?
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
AND
socks://socks=server
without any luck...
Does anyone have any experience getting SOCKS5 to work with InternetSetOption ?