Hi All, Dropbox backend service expecting a POST request with empty body and without Content-Type header for download method[1].
I am unable to remove the Content-Type header from the request. Is there any way to do this? I tried with the following: <header name="Content-Type" scope="transport" action="remove"/> It is working for GET methods but not for POST one. If I use <property name="messageType" scope="axis2" value=""/>, content type is set as null but it is sending "<jsonObject/>" in the body. Please find the configuration I used: <?xml version="1.0" encoding="UTF-8"?> <proxy xmlns="http://ws.apache.org/ns/synapse" name="testProxy" startOnLoad="true" statistics="disable" trace="disable" transports="https,http"> <target> <inSequence> <payloadFactory media-type="json"> <format></format> <args></args> </payloadFactory> <property name="messageType" value="application/x-www-form-urlencoded" scope="axis2"></property> <property name="FORCE_POST_PUT_NOBODY" value="true" scope="axis2" type="BOOLEAN"></property> <call> <endpoint> <http method="post" uri-template=" https://content.dropboxapi.com/2/files/download"/> </endpoint> </call> </inSequence> </target> <description/> </proxy> [1]. https://www.dropbox.com/developers/documentation/http/documentation#files-download Thanks, -- <dev-requ...@wso2.org> Keerthika Mahendralingam Software Engineer Mobile :+94 (0) 776 121144 keerth...@wso2.com WSO2, Inc. lean . enterprise . middleware
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev