Split of http read data function.