I'm trying to view captcha from a site, but I screw something, because it is incorrect when I submit the answer, though I get the session and everything, so I decided to do it request by request, exactly the way they appear in fiddler, but it is https, and I can't find a tutorial, or explanation or anything about https requests in C#, for example, the first request is:
CONNECT passport.abv.bg:443 HTTP/1.1 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:29.0) Gecko/20100101 Firefox/29.0 Connection: keep-alive Connection: keep-alive Host: passport.abv.bg
so I try to do it like that:
HttpWebRequest req0 = (HttpWebRequest)WebRequest.Create("https://passport.abv.bg:443/");
req0.Method = "CONNECT";
req0.KeepAlive = true;
req0.UserAgent = "Mozilla/5.0 (Windows NT 6.1; rv:29.0) Gecko/20100101 Firefox/29.0";
req0.Host = "passport.abv.bg";
HttpWebResponse resp0 = (HttpWebResponse)req0.GetResponse();
StreamReader Reader0 = new StreamReader(resp0.GetResponseStream());
string thePage0 = Reader0.ReadToEnd();
Reader0.Close();
and of course it won't work, I can't even see the result, as it's not string, and the application freezes.. Can you give me some info please, I really can't find any explanation how to use https requests in C#