public void SendRequest(WebRequestExpress request) { ResponseUri = request.RequestUri; request.Header = request.Method + " " + ResponseUri.PathAndQuery + " HTTP/1.0\r\n" + request.Headers; if (EncodingType != null) { socket.Send(EncodingType.GetBytes(request.Header)); } else { socket.Send(Encoding.UTF8.GetBytes(request.Header)); } }