to capture http stream in a specific period