If you using HttpURLConnection to post argument to WEB API, and the argument contaions + sign, the + sign will be replace to space

How to avoid this??

String urlParameters  = "Token="+ queryStr;

change

String urlParameters  = "Token="+ URLEncoder.encode(queryStr,"UTF-8");

文章標籤
全站熱搜
創作者介紹
創作者 痞客興 的頭像
痞客興

痞客興的部落格

痞客興 發表在 痞客邦 留言(0) 人氣(26)