Add useEncodedMedia param to HttpPostEndpoint

Change-Id: I58ee6d80e17a394b1734a5780f9a014cc83b8eea