Improved http utils