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? -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -

Listeners to visualise results of load test in JMeter -