Answer the question
In order to leave comments, you need to log in
C# get request with image output?
WebRequest reqGET = WebRequest.Create(@"http://ya.ru/");
WebResponse resp = reqGET.GetResponse();
Stream stream = resp.GetResponseStream();
StreamReader sr = new StreamReader(stream);
string s = sr.ReadToEnd();
textBox.Text = s;
<img id="formlogin-captcha-image" src="/profile/captcha?v=56d176bfcee6f" alt="">
Answer the question
In order to leave comments, you need to log in
There is a great tool for parsing html code for .NET - HtmlAgilityPack
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question