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, *
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);
}