服务端如何处理http请求
我在winform程序发送请求,服务端处理后返回数据,请问服务端程序如何实现处理这个。
以下是winform发送请求程序
PostData为发送到服务端的数据流
Stream reStream = null; //返回
cookie = null;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.ContentType = "application/x-www-form-urlencoded ";
request.ContentType = "text/html; charset=gb2312 ";
request.KeepAlive = false;
request.Method = "POST ";
request.AllowAutoRedirect = false;
request.CookieContainer = new CookieContainer();
byte[] buffer= new byte[postData.Length];
postData.Read(buffer, 0, buffer.Length);
request.ContentLength = buffer.Length;
Stream pstream = &n