1 Reply Latest reply on Nov 1, 2011 8:23 AM by ryanm 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...