updated http sample