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
Post a Comment