通过url发送对象,apache openmeetings错误400发送特殊字符

时间:2017-02-11 10:12:59

标签: tomcat red5 http-status-code-400 openmeetings

我正在使用Apache Open会议,除了注册,我已成功使用其方法,因为我无法通过URL发送用户的对象 如何更改我的服务器设置以发送特殊字符,如“{”和“[”? 我有red5服务器和apache-openmeetings-3.1.5版本

    function sign_up(){
    $.ajax({
        method : "GET",
        url : url_domain + "openmeetings/services/user/login",
        data : {
            user : 'omar',
            pass : 'omar'
        },
        dataType : "json",
        success : function(data) {
                    sid = data["serviceResult"]["message"];

                    user = JSON.stringify({"address":{"country":"US","deleted":false,"email":"omar-bahri-it@hotmail.com","id":null},"firstname":"soso","id":null,"languageId":1,"lastname":"sosos","login":"sosos","rights":["Room","Soap","Admin","Dashboard","Login"],"timeZoneId":"Europe/Berlin","type":"user"});       


                    //user = null;
                    confirm = false;
            $.ajax({
                method : "POST",
                url : url_domain + "openmeetings/services/user?sid="+sid+"&user="+user+"&confirm="+confirm,
                data :  {

        },
                dataType : "json",
                success : function(data2) {

                    $("#res5").html(data2);

                }
            });
        }
    });
}

0 个答案:

没有答案