Im trying to get webpage from confluence using Invoke-webrequest. I can’t share full url nad content of webpage but I will try to explain. First is command which im using
Invoke-WebRequest -Uri 'https://confluence.webpage.com/rest/api/content/59126560?expand=body.storage,version
Generali when im opening that in web browser i see html webpage code with content on that webpage.
Unfortunately using invoke-webrequest i see someting like that:
`} else {
_0x16a7d0[a0_0x16b4('0x1d2')]()[a0_0x16b4('0xdc')](/^(.*?):[^Sn]*([sS]*?)$/gm, function (_0x52b96f, _0x1e5bcf, _0x476722) {
_0x3925ca[a0_0x16b4('0x178')](_0x1e5bcf = _0x1e5bcf[a0_0x16b4('0x1c1')]()), _0x129172[a0_0x16b4('0x178')]([_0x1e5bcf, _0x476722]), _0x26ab8
e[_0x1e5bcf] = _0x26ab8e[_0x1e5bcf] ? _0x26ab8e[_0x1e5bcf] + ',' + _0x476722 : _0x476722;
}), _0x5537b8(u());
}
} finally {
try {
_0x129172 || null == _0x5537b8['return'] || _0x5537b8[a0_0x16b4('0xe')]();
} finally {
if (_0x26ab8e) throw _0x16a7d0;
}
}`
That is only example but full result looks similar.
Generali I was also trying solution from below webpage but result was that same.
https://garytown.com/atlassian-confluence-updating-tables-with-powershell