Enhancement: Allow to change the endpoint URL of a Http instance
Trivial: Removed unused variable "length"