Use http_build_query to simplify the script

Signed-off-by: Takashiro <takashiro@qq.com>