I am calling the REST (PHP) from Mule HTTP Request using query-param.
This works fine, with small params data!
But one of the params ("rest_data") is a content file (Base64 encoded). When the file content is large (> ~8K) the request faild. I think that params does not support large strings.
What should be the way to use body instead query-param on Mule in this case?
See the configuration file:
<http:request-config name="HTTP_Request_Configuration" host="164.164.164.233" port="80" basePath="/crmtec/service/v4_1/rest.php" doc:name="HTTP Request Configuration">
</http:request-config>
<http:request config-ref="HTTP_Request_Configuration" path="/" method="POST" doc:name="HTTP Documento">
<http:request-builder>
<http:query-param paramName="method" value="set_document_revisions"/>
<http:query-param paramName="input_type" value="JSON"/>
<http:query-param paramName="response_type" value="JSON"/>
<http:query-param paramName="rest_data" value="#[flowVars.params.rest_data]"/>
</http:request-builder>
<http:success-status-code-validator values="0..599"/>
</http:request>