Discussion:
Wininet & Proxy...
(too old to reply)
Java NewB
2004-08-12 19:43:21 UTC
Permalink
Hi*!
I have a Win32 Application that sends a GET request to a https URL.
It works fine with direct connection to internet and with SOCKS4 (see SOCKS4
working version below) but it doent work for SOCKS5 proxy the call to
InternetOpenUrl just returns NULL. I dont want to use IE's proxy settings for
my connection.
Here is SOCKS4 working version, please tell how can i make it work with
SOCKS5.


if( !(hInet = InternetOpen(_T("MY App"), INTERNET_OPEN_TYPE_PROXY,
"socks=213.213.213.213:1080", NULL,
INTERNET_FLAG_NO_COOKIES | INTERNET_FLAG_NO_UI |
INTERNET_FLAG_PRAGMA_NOCACHE | INTERNET_FLAG_SECURE)))
{
return NULL;
}

if( !(hUrl = InternetOpenUrl(hInet, szUrl, szHeaders, dwSize,
INTERNET_FLAG_NO_AUTO_REDIRECT | INTERNET_FLAG_NO_COOKIES |
INTERNET_FLAG_NO_UI | INTERNET_FLAG_PRAGMA_NOCACHE | INTERNET_FLAG_SECURE,
0)))
{
InternetCloseHandle(hInet);
return NULL;
}

Thanks in advance,
Regards,
NewB.
Stephen Sulzer
2004-08-14 01:36:36 UTC
Permalink
WinInet does not support SOCKS5 proxies.

Regards,
Stephen

Loading...