Forum Discussion

jaread83's avatar
jaread83
Champion
8 years ago

414 Request-URI Too Long

Hey all, After completing a customisation with the very helpful VikasB over on this thread https://community.lithium.com/t5/Developer-Discussion/Post-a-new-topic-to-a-specific-board-via-API/m-p/3249...
  • VikasB's avatar
    8 years ago

    jaread83

    You can use Post call instead. 

    Instead of putting the data on the URL you should be putting it in the body of a POST request. You need to add a data value to the object you're passing to the ajax function call. Like this:

     

    $.ajax({
            url: dest_url,
            type:"post",
            async: false,
            data: {
                about: about
            },
            success: function(response){                                       
            },
            error:function(xhr, ajaxOptions, thrownError){alert(xhr.responseText); ShowMessage("??? ?? ?????? ??????? ????","fail");}
        });