开发者

UrlEncodedFormEntity Replacement

开发者 https://www.devze.com 2023-02-05 05:17 出处:网络
We have web server which only acceptsdecoded value from android phone As example \"http://www.url.com/data/?name=hello World\"

We have web server which only accepts decoded value from android phone

As example

"http://www.url.com/data/?name=hello World"

returns expected rssult

but when we are trying to use

"http://www.url.com/data/?name=URLEncoder.encode("hello World")"

gives nothi开发者_如何学编程ng.

We can not change the web service.

But as we all know java only accept encoded url

How can we achieve the goal so that we can send the decoded url as it is to the server


Could you please restructure the question, to make it more clear? also the below statement appear to be incorrect (Assuming you are using Java)

http://www.url.com/data/?name=URLEncoder.encode("hello World")

0

精彩评论

暂无评论...
验证码 换一张
取 消