Using .NET HttpClient to capture partial Responses

Some tricks to control how many bytes are read from TCP/IP or how to read only 1000 bytes:

Using .NET HttpClient to capture partial Responses – Rick Strahl’s Web Log.

This post discusses relations between low level TCP/IP buffering and HttpCompletionOption.ResponseHeadersRead, request.AllowReadStreamBuffering/AllowWriteStreamBuffering, using TcpClient directly and range (httpclient.DefaultRequestHeaders.Range = new RangeHeaderValue(0, size);)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s