Closed brook19 closed 8 years ago
String url = "http://localhost/user"; StringRequest stringRequest = new StringRequest(Request.Method.GET, url, responseLis, errorLis) { @Override protected Map<String, String> getParams() throws AuthFailureError { // TODO Auto-generated method stub Map<String, String> param = new HashMap<>(); param.put("action","search"); param.put("id","1"); return requestMap; } };
When send the request, the url can't auto convert to "http://localhost/user?action=search&id=1".
Just like KJFrameForAndroid send GET request.
Hi. I don't think that's an issue, cause we should handle URL parameters ourselves but it would be nice to put such capability
Ok!
String url = "http://localhost/user"; StringRequest stringRequest = new StringRequest(Request.Method.GET, url, responseLis, errorLis) { @Override protected Map<String, String> getParams() throws AuthFailureError { // TODO Auto-generated method stub Map<String, String> param = new HashMap<>(); param.put("action","search"); param.put("id","1"); return requestMap; } };
When send the request, the url can't auto convert to "http://localhost/user?action=search&id=1".
Just like KJFrameForAndroid send GET request.