// URL
String CategoryUrl =“http://lazurd.com/shop/api/rest/custom/categories/”;
StringRequest request = new StringRequest(Request.Method.GET,CategoryUrl,new Response.Listener<String>() {
@Override
public void onResponse(String response) {
Log.d("CODDE",response );
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError volleyError) {
Toast.makeText(MainActivity.this,"ERROR",Toast.LENGTH_LONG).show();
}
});
RequestQueue queue = Volley.newRequestQueue(this);
queue.add(request);
BasicNetwork.performRequest:http://lazurd.com/shop/api/rest/custom/categories/的意外响应代码500
1 回答