I\'m creating simple proxy server but I faced a strange situation, I\'ve following code :
var clientRequestStream = _tcpClient.GetStream();
var requestHeader = c
You won't be able to set clientRequestStream.Position = 0 because NetworkStream is forward-only. See here: http://msdn.microsoft.com/en-us/library/system.net.sockets.networkstream.position.aspx
Be careful about thinking of NetworkStream in the same way as regular streams. Things like Peek() for example on a StreamReader can cause your application to block.