HTTP隧道通过代理服务器不获取响应 [英] HTTP tunnel through proxy Server Not Getting the response

查看:472
本文介绍了HTTP隧道通过代理服务器不获取响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我必须通过代理服务器建立隧道。我已尝试链接https://login.yahoo.com/config/login_verify2 ?.intl = in& .src = ym。



我的证书非常真实,并通过下划线获得响应。



现在,将此响应作为请求再次写入SSLStream。等待响应。



但我无法获得在这里的回复,有没有人知道如何解决这个问题,



我已经用fiddler检查了,这里跟着同样的过程。套接字一直挂在Bold上行。



Hi All ,

I have to make tunnel throug the proxy server.I have try on link https://login.yahoo.com/config/login_verify2?.intl=in&.src=ym.

I have succusfully authentic with certificate and get the response from it with underline.

Now ,Make this response as request and write it again to SSLStream .Wait for the response .

but i am not able to get the response over here ,Does any one know how to resolve this issue,

I have checked with fiddler and here same process are followed.The socket has been hang on Bold line.

 if (uri.Scheme == "https" || line.Contains("CONNECT"))
                {
                    rport = 443;
                   IPHostEntry rh = Dns.GetHostEntry("login.yahoo.com");
                                          
                    SslStream sslStream = sslTunnel(ns, uri.OriginalString);                  
                    data = ReadMessage(sslStream);                

GET /config/login_verify2?.intl=in&.src=ym HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: en-IN
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)
Accept-Encoding: gzip, deflate
Host: login.yahoo.com
DNT: 1
Connection: Keep-Alive
Cookie: B=fr3ksjp8s5l0e&b=3&s=cd; MSC=t=1372134921X; _em_vt=8b5db33d77960d33c4f7f5e5a2ab51c7e944cd37e9-8521498151c81563; AO=o=1&s=1&dnt=1
                    
                    Socket remoteserver = new Socket(rh.AddressList[0].AddressFamily, SocketType.Stream, ProtocolType.IP);
                    remoteserver.Connect(new IPEndPoint(rh.AddressList[0], rport));        
                                      
                    byte[] databytes = Encoding.UTF8.GetBytes(data);
                    sslStream.Write(databytes, 0, databytes.Length);

 rec = sslStream.Read(buffer, 0, buffer.Length);

}

推荐答案

最后得到解决方案,必须实现远程隧道。
Finally get the soluction ,Have to implement Remote Tunnel.


这篇关于HTTP隧道通过代理服务器不获取响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆