mcxiaoke / android-volley

DEPRECATED
4.29k stars 1.56k forks source link

Send GET request with params is not working #128

Closed brook19 closed 8 years ago

brook19 commented 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.

sepbehroozi commented 8 years ago

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

brook19 commented 8 years ago

Ok!