Using invoke-webrequest to login to a website and then accessing the information, Wesite having Javascript RRS feed

  • Question

  • Hi Team,

    need to login to the website and accessing the information, but website using the JavaScript not having any forms,

    Please share the any working option with Invoke-RestMethod or invoke-webrequest

    <script type="text/javascript">
      var url = document.location.href;
       if(url.indexOf('liteagent') != -1){
        document.title = "Login";
            var Ext = Ext || {}; // Ext namespace won't be defined yet...
            try {
                // This function is called by the Microloader after it has performed basic
                // device detection. The results are provided in the "tags" object. You can
                // use these tags here or even add custom tags. These can be used by platform
                // filters in your manifest or by platformConfig expressions in your app.
                Ext.beforeLoad = function (tags) {
                    var s =,  // the query string (ex "?foo=1&bar")
                            profile = 'classic',
                            locale = localStorage ? (localStorage.getItem('user-lang') || 'en') : 'en';
                    // For testing look for "?classic" or "?modern" in the URL to override
                    // device detection default.
                    /* if (s.match(/\bclassic\b/)) {
                     profile = 'classic';
                     else if (s.match(/\bmodern\b/)) {
                     profile = 'modern';
                     else {
                     profile = tags.desktop ? 'classic' : 'modern';
                     //profile = ? 'modern' : 'classic';
                    Ext.manifest = profile+'-'+locale; // this name must match a build profile name
                    // This function is called once the manifest is available but before
                    // any data is pulled from it.
                    //return function (manifest) {
                    // peek at / modify the manifest object
                //local storage not available
                document.write('<div style="width:60%; font-family: sans-serif; margin: 100px auto">To view this page modify browser options to allow third-party cookies and site data.<\/div>');
    Thursday, July 30, 2020 11:43 AM