How to encode space as %20 in UrlEncodedFormEntity while executing apache HttpPost?
The web serive i am hitting requires the parameters as URLEncodedFormEntity. I am unable to change space to %20 as per requirement of the web service, instead space is converted to +. My code is : HttpClient client = new DefaultHttpClient() HttpPost post = new HttpPost(url); UrlEncodedFormEntity entity = new UrlEncodedFormEntity(parameters, HTTP.UTF_8); post.setEntity(entity); HttpResponse resp = client.execute(post); where parameters is List<NameValuePair> parameters. I read through many posts and all suggest manuall change space to %20 after emcoding. Here, how do i access the entity and