关于穿过http代理的问题
小弟公司使用http代理上网,我想用winsock写一个穿过http代理下载的工具,前面的connect没有问题,但是当我发送
CONNECT www.sina.com:80 HTTP/1.1
User-Agent: Myapp/0.1
Proxy-Authorization: Basic TGFzZXJfamlhbmc6TUR6bW16Zno1YwA=
到公司的代理服务器时,收到如下的数据
HTTP/1.1 502 Proxy Error ( The specified Secure Sockets Layer (SSL) port is not allowed. ISA Server is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. )
Via: 1.1 ATSZ-PROXY-03
Connection: close
Proxy-Connection: close
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html
Content-Length: 786
很奇怪,为什么要我通过443端口连接,没办法,只好改端口为443,重新发送requestheader,收到了如下的信息
HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )
Via: 1.1 ATSZ-PROXY-03
Proxy-Authenticate: Negotiate
Proxy-Authenticate: Kerberos
Proxy-Authenticate: NTLM
Connection: close
Proxy-Connection: close
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html
这是什么意思?网上查了一下,是不是需要使用GSS-API?如果是,该如何使用,有没有这方面的资料推荐一下。谢谢!