下面的帖子将了InternetOpen怎么使用socks代理(不要认证的socks代理)、以及HTTP代理的认证问题,但对socks代理的认证没有讲到,不知道哪位高手有经验,能教一下吗?先谢谢了!http://community.csdn.net/Expert/topic/3987/3987488.xml?temp=.8627283

解决方案 »

  1.   

    http://community.csdn.net/Expert/topic/3987/3987488.xml?temp=.8627283
    重新看下。
      

  2.   

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/handling_authentication.asp
      

  3.   

    感谢楼上两位,用InternetSetOption进行代理认证时,INTERNET_OPTION_USERNAME 是服务器认证,INTERNET_OPTION_PROXY_USERNAME 是代理认证,但好象只支持HTTP代理的认证,对于SOCKS代理怎么认证呢?下面是MSDN上的:
    Some proxies and servers require authentication before granting access to resources on the Internet. The WinINet functions support server and proxy authentication for http sessions. Authentication of gopher and ftp servers must be handled by the InternetConnect function. Currently, FTP gateway authentication is not supported.