android httpGet issue
Estou tentando executar o seguinte link usando o seguinte código:
class httpget{
HttpGet httpGet=null;
public void linkexecute(){
String url="http://<server>/<path>/action=send&msg=new message";
httpGet= new HttpGet(url); // line 1
....
}
at line 1 it is giving error "Illegal arguement exception"
java.lang.IllegalArgumentException: Illegal character in query at index 77: http://<server>/<path>/sms.json?action=send&msg=new message
at java.net.URI.create(URI.java:970)
at org.apache.http.client.methods.HttpGet.<init>(HttpGet.java:75)
at com.sms.login.LoginService.sendSms(LoginService.java:143)
Não existe nenhum erro para o URL abaixo, que não possui lacunas nas palavras "msg ="
String url="http://<server>/<path>/action=send&msg=newmessage";
Como posso resolver o problema da diferença de palavras no URL?