我正在使用DavidWebb进行Http POST请求。我有一个ArrayList或HashMap包含我想要发送的所有参数。如何使用DavidWebb传递参数数组?
目前我是这样做的:
Response<String> resp = webb
.post(Constants.URL + Constants.CUSTOMER_SIGNUP)
.param("username", params.get("username"))
.param("user_contact_no", params.get("user_contact_no"))
我希望您能帮我实现类似的功能。
Response<String> resp = webb
.post(Constants.URL + Constants.CUSTOMER_SIGNUP)
.arraylist/hasmap of params
ArrayList
中获取键/值对? - Andy Turner