2014-04-01 26 views
1
http://search-gf-slvaax6ij6m7ohb7at3ki2kvua.us-east-1.xxxx.yyy.com/2013-01-01/search?q=abc&facet.mod={sort:'count'}&facet.topic={sort:'count'} 

this url gives me a error whwn i access through get method in android非法字符查詢索引中的網址

error:Illegal character in query at index

回答

1

嘗試URL的查詢字符串編碼字符,像這樣:

http://search-gf-slvaax6ij6m7ohb7at3ki2kvua.us-east-1.xxxx.yyy.com/2013-01-01/search?q=abc&facet.mod=%7bsort%3a%27count%27%7d&facet.topic=%7bsort%3a%27count%27%7d 
+0

它的工作完美,但如何編碼的網址。請指定方法。 –

+0

查看fge的回答。您需要的解決方案取決於您如何在代碼中構建此URL。 –

相關問題