improved (?) http reply handling.