thanks, it works.
On Thu, Apr 3, 2014 at 1:24 PM, Malaka Silva <[email protected]> wrote: > Try setting NO_ENTITY_BODY > > <property name="NO_ENTITY_BODY" value="true" scope="axis2"/> > > > On Thu, Apr 3, 2014 at 12:19 PM, Madhawa Bandara <[email protected]> wrote: > >> Hi, >> I'm working on an ESB connector for Google Tasks API. I need to invoke >> some API methods using HTTP POST according to the Google Tasks API specs. >> >> e.g. >> To clear a task: >> >> POST >> https://www.googleapis.com/tasks/v1/lists/MTUxMjgwNjU3MTg0OTI4MDA5Njk6MTM2Mzk2ODY5Mzow/clear >> >> >> Here the payload is empty as per the Google Tasks API reference. >> >> when I send this request, it gives a *411 Length Required* response >> which should be caused by missing content-length header. >> >> So how can I send a POST request with an *empty payload* via *synapse >> configurations* while the *content-length* is automatically set, in >> order to avoid this problem? >> >> Thank you. >> >> -- >> Regards, >> >> *Madhawa Bandara* >> Software Engineer >> WSO2, Inc. >> lean.enterprise.middleware >> >> Mobile - *+94777487726 <%2B94777487726>* >> Blog* - *classdeffound.blogspot.com >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > Best Regards, > > Malaka Silva > Senior Tech Lead > M: +94 777 219 791 > Tel : 94 11 214 5345 > Fax :94 11 2145300 > Skype : malaka.sampath.silva > LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 > Blog : http://mrmalakasilva.blogspot.com/ > > WSO2, Inc. > lean . enterprise . middleware > http://www.wso2.com/ > http://www.wso2.com/about/team/malaka-silva/<http://wso2.com/about/team/malaka-silva/> > > Save a tree -Conserve nature & Save the world for your future. Print this > email only if it is absolutely necessary. > -- Regards, *Madhawa Bandara* Software Engineer WSO2, Inc. lean.enterprise.middleware Mobile - *+94777487726* Blog* - *classdeffound.blogspot.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
