Hello,
Im working in a windows service using VS2012, but there is an error when I send the request (im sending this “http://192.168.2.1:5000/querymsg?user=admin&passwd=admin&apimsgid=0″). This is my code:
HttpWebRequest oHttpRequest = (HttpWebRequest)WebRequest.Create(strUrl);
HttpWebResponse oHttpResponse = (HttpWebResponse)oHttpRequest.GetResponse();
The second line throw this exception:
“The server committed a protocol violation. Section=ResponseStatusLine”