Some HTTP client fixes.