Answer the question
In order to leave comments, you need to log in
How to determine what came in response to an http request?
Hello!
Preface... There is a VoIP phone, it understands http requests.
I generate a request for it from C# and send the request:
WebRequest request = WebRequest.Create ("http://www.contoso.com/default.html");
WebResponse response = request.GetResponse ();
WebResponse response = request.GetResponse ();
WebResponse response = request.GetResponse ();
try
{
resp = (HttpWebResponse)webr.GetResponse();
}
catch (WebException e)
{
resp = (HttpWebResponse)e.Response;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question