KostasA
KostasA

Reputation: 5570

How can I get the body of an HttpUriRequest object

can anyone show me a simple way to get the entity body of an httpurirequest object.

Br

Upvotes: 4

Views: 3081

Answers (1)

sdabet
sdabet

Reputation: 18670

HttpUriRequest is the base interface for all HTTP requests, including those which don't have a body.

Requests with a body implement the HttpEntityEnclosingRequest interface, which provides a getEntity() method.

Upvotes: 4

Related Questions