Apache HttpClient 3.x PostMethod.setParams(HttpMethodParams params) do

Please Visit: http://ift.tt/1ajReyV



Apache HttpClient 3.x PostMethod.setParams(HttpMethodParams params) doesn't work. Use addParameter method or setParameter(String parameterName, String parameterValue)

As setParams(HttpMethodParams params) is defined in the base class: HttpMethodBase. In PostMethod, it actually uses a private Vector params = new Vector(); to store request content.

Use addParameter method or setParameter(String parameterName, String parameterValue) defined in PostMethod to add parameters.



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1dukNA1

via LifeLong Community

No comments:

Post a Comment