Http library improvements