WebLog Posts in Category Networking


Using .NET HttpClient to capture partial Responses
January 29, 2014 @ 5:50pm

Recently I needed to create a high volume monitoring application that retrieves a huge number of HTTP requests, and I need to minimize the amount of data pulled from these requests. In this post I describe some of the limitations in actually pulling an exact amount of data from an HTTP and Tcp/IP connection in .NET.

13 comments
Getting a 'base' Domain from a Domain
April 24, 2012 @ 9:17pm

I was surprised to see that there wasn't some way in .Net to retrieve the base domain name from a sub-domain. For example, I want www.west-wind.com, and store.west-wind.com to return me just the base url. Easy enough but there are a couple small issues to check for especially when dealing with string based domain names.

11 comments
WebRequest and SSL Connection Problems
April 17, 2007 @ 1:16am

Ever run into a problem with WebRequest or a Web Service Proxy on an SSL request where the first request works just fine but the second one fails? Run again and it works again and then fails again? It's a common problem that occurs when the Keep-Alives aren't handled the way the client requests on the server.

5 comments