Changed implemetation of http sevice.