HTTP request improvements and fixes.