Hi Dakshika, I used the pack that is currently available to download @ http://jaggeryjs.org/. jaggery-0.9.0-SNAPSHOT_ALPHA3 <http://dist.wso2.org/products/jaggery/dl/jaggery-0.9.0-SNAPSHOT_ALPHA3.zip>
Please let me know which version I should use. Thank you & Best regards, *Amal Gunatilake* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware On Mon, Jul 14, 2014 at 2:47 PM, Dakshika Jayathilaka <[email protected]> wrote: > Hi, > > I have checked code and seems its fixed on latest version. > > What's the pack that your using currently? > > > > *Dakshika Jayathilaka* > Software Engineer > WSO2, Inc. > lean.enterprise.middleware > 0771100911 > > > On Thu, Jul 10, 2014 at 12:13 PM, Amal Gunatilake <[email protected]> wrote: > >> Hi Team, >> >> As mentioned in the documentation >> <http://jaggeryjs.org/documentation.jag?api=post> I passed the header to >> change the Content-Type to "application/json" but still it tends to pass >> the default Content-Type ("application/x-www-form-urlencoded; charset=UTF-8 >> "). >> >> My jaggery code is as follows: >> >> var httpUrl = "http://localhost:4444"; >> var headers = { >> "Content-Type":"application/json", >> "Authorization":"Basic YWRtaW46YWRtaW4= " >> }; >> var url = "/bpmnrest/runtime/tasks/408"; >> var data = request.getContent(); >> var result = post( httpUrl + url, data, headers, "json"); >> >> When I monitor the request through TCPMon I get the following. >> >> POST /bpmnrest/runtime/tasks/513 HTTP/1.1 >> Content-Type: *application/x-www-form-urlencoded; charset=UTF-8 * >> Authorization: Basic YWRtaW46YWRtaW4= >> User-Agent: Jakarta Commons-HttpClient/3.1 >> Host: localhost:4444 >> Content-Length: 47 >> >> action=complete&variables=%5Bobject%20Object%5D >> >> The Authentication header seems to get modified but not the Content-Type. >> Please let me know a possible workaround to proceed with implementing the >> BPMN Humantask Jaggery app. >> >> Thank you & Best regards, >> >> *Amal Gunatilake* >> Software Engineer >> WSO2 Inc.; http://wso2.com >> lean.enterprise.middleware >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
