I am trying to add "Accept-Encoding" parametr as "gzip,deflate" to my HTTP header using HttpClient. Code is given bellow. However I am getting bellow error with the response and unable to add the header parameter. Response doesn't contain the added header field
String url = "http://192.168.1.25:8380/ABCDService?wsdl";
HttpClient client = HttpClientBuilder.create().build();
HttpPost post = new HttpPost(url);
post.addHeader( "Accept-Encoding", "gzip,deflate" );
HttpResponse response = client.execute(post);
Error : Internal Server Error