url拼凑示例(具体拼凑规则由服务器定)

请求一页的所有数据:

1         // http://127.0.0.1:8090/home?index=0&name=zhangsan&age=20
2         String url = HttpHelper.URL + getKey() + "?index=" + index
3                 + getParams();

请求图片url:

1         // http://127.0.0.1:8090/image?name=app/com.eg.android.AlipayGphone/icon.jpg
2         String iconurl = HttpHelper.URL + "image?name=" + data.iconUrl;
原文地址:https://www.cnblogs.com/johnsonwei/p/5662473.html