1 Reply Latest reply on Dec 31, 2017 8:33 PM by paic RSS
    paic Collaborator

    Content Loader Functions Tip

    Remember that when you are calling an external URL to fetch data via an API call to another system that you must encode special characters specifically. For example the URL that you may type into a browser to test may look like this:



    but when scripting that into a string variable you'll need to replace the space and the carrot with the proper encoded values (%20 and %5E)


    var params = {

    username : "me",

    password : "password",

    ignoreSSLErrors : false,

    timeout : 60,

    headers : headers


    var result = Resources['ContentLoaderFunctions'].LoadXML(params);


    also note that in this instance we're making a secure connection therefore port 443 (typically the default) was explicitly specified...