Newsgroups : Microsoft : microsoft.public.inetsdk.programming.wininet : 2004 Dec : wininet proxy support issue

www.cryer.info
Managed Newsgroup Archive

wininet proxy support issue

Subject:wininet proxy support issue
Posted by:"john li" (johnli19..@hotmail.com)
Date:Tue, 21 Dec 2004 00:44:19 GMT

Hello,
In my testing to ues WinInet API for HTTP proxy setting, I cannot get it
work.

If I set up my IE use non-proxy and in code, I set proxy connection and even
I *intentionally* set it to wrong IP address, it still works. Why? Here is
some snippet code. Any suggestion is appreciated.

//my ie has no proxy config. I want to use my own proxy connection.
hSession=InternetOpen(_T("my own test"),
     INTERNET_OPEN_TYPE_PROXY,
     _T("http=http://10.11.25.22:3129"),
     NULL,
     0);

  hConnect = ::InternetConnect(hSession, szUrl,
                                 INTERNET_DEFAULT_HTTPS_PORT, "", "",
                                 INTERNET_SERVICE_HTTP, 0, 0) ;
...
in this case, I am still able to connect to http server in my code, which
confuses me. Looks like my program still uses ie connection setting instead
of mine. Did i miss something?

thanks,

John

Replies:

www.cryer.info
Managed Newsgroup Archive