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");
文章標籤
全站熱搜
留言列表