Raw C# conversion of Apache's HttpCore Java library.