java - URI build error when using org.apache.http.client.utils.URIBuilder.URIBuilder.build() -


my codes follows:

uri uri = new uribuilder().setscheme("http")             .sethost("127.0.0.1:8080")             .setpath("/test")             .setparameter("openid", "openid")             .setparameter("openkey", "openkey")             .build(); 

i expect result this: http://127.0.0.1:8080/test?openid=openid&openkey=openkey
result is: http://127.0.0.1:8080/test?openid%3dopenid%26openkey%3dopenkey

i hope reason why "=","&" encoded, help


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -