parse http packet