update parse url function

Signed-off-by: Fuang.Cao <cavan.cfa@gmail.com>