I use a rest web service on my host .
I use it with volley library in my project and run my project on android emulator and it works correct (means argument send and receive correct message)
I use $_GET
method and my link is like this :
https://example.com/myapi.php?arg1=val1&arg2=val2
but this web service does not work on real device and I receive from my host:
error 400 bad request
I use this method on my request and it did not work for me :
{
@Override
protected Map<String,String> getParams(){
Map<String,String> params = new HashMap<String, String>();
params.put("arg1",val1);
params.put("arg2",val2);
return params;
}
How can I fix this ?