I am trying to use DefaultHttpClient and HttpGet to make a request to a web service. Unfortunately, the web service URL contains illegal characters, such as {(ex: domain.com/service/{username}). Obviously, the web service assignment is poorly written, but I cannot change it.
When I do the HttpGet(url) , I get that I have an illegal character in the url (that is, {and}). If I encode the URL before this, there is no error, but the request goes to another URL where there is nothing.
The URL, although it has illegal characters, works from a browser, but the HttpGet implementation HttpGet not allow me to use it. What should I do or use instead to avoid this problem?
Catalin morosan
source share