update http example with EncodeUtil class