Code example for StringEntity

Methods: setContentEncodingsetContentType