Hi,

Tried to use Jaggery post() method. And it's not working as expected.
getting an error on the documentation try out feature.


*Sample*
<%
var url = 'http://jaggeryjs.org/apidocs/resources/data.jag';
var result = post(url, 'Jaggery HTTP POST', {
    "User-Agent" : "Jaggery-XHR",
    "Country" : "LK"
}, 'json');
print(result.data);
%>

*On the local jaggery server*
*com.google.gson.JsonSyntaxException:
com.google.gson.stream.MalformedJsonException: Expected EOF at line 1
column 27 at line #3*

*On the "jaggeryjs.org <http://jaggeryjs.org>" **website*
*org.jaggeryjs.scriptengine.exceptions.ScriptException:
java.net.ConnectException: Connection timed out at line #3*

*http://jaggeryjs.org/documentation.jag?api=post
<http://jaggeryjs.org/documentation.jag?api=post>*


Any feedback appreciate

*Regards,*

*Jerad*

-- 
*Jerad Rutnam | **Software Engineer - UI*
WSO2, Inc. www.wso2.com

*Email: [email protected] <[email protected]>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to