문제

Can someone help me in getting more information about
BasicHttpEntityEnclosingRequest(String method, String uri).

This did not help me understand the said topic.

도움이 되었습니까?

해결책

What are you trying to do with BasicHttpEntityEnclosingRequest? An entity in httpcomponents refers to the body or the payload of the request.

You should be using sub classes of HttpEntityEnclosingRequestBase that is HttpPut, HttpPost or HttpPatch when sending a HTTP request that has a body. http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/client/methods/HttpEntityEnclosingRequestBase.html

You should read the HttpClient Tutorial, particularly chapter 1 to get you started.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top