I need a java program to generate the following request. I am using Apache HttpClient Library but still not able to produce a request like this:
This is what my python p
Accept-Encoding is part of the HTTP Header, in addition to the parameters that you mistakenly sent as POST parameters:
Here is how to send it using HTTP Client:
httpPostRequest.setHeader("Content-Length", "6");
httpPostRequest.setHeader("Accept-Encoding", "identity");
httpPostRequest.setHeader("Host", "a.host.com");