我该如何解决此错误?

HttpClient httpclient = new DefaultHttpClient();
String link="http://myurl.com/Acces/DEFAULT2.ASPX?+ivrsDetails.getAssetid()"+"\""+ivrsDetails.getTime();

HttpPost httppost = new HttpPost(link);



查询中索引62处的字符非法:
http://myurl.com/Acces/DEFAULT2.ASPX?+Details.getAssetid()“ 17:47:21

最佳答案

试试这个...您在网址中插入了不匹配的引号

"http://myurl.com/Acces/DEFAULT2.ASPX?+ivrsDetails.getAssetid()"+"\\"+ivrsDetails.getTime();

关于java - 查询索引处的字符非法,同时在url中插入双引号,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/23244155/

10-11 17:41