It's all about the answers!

Ask a question

How to get content of RTC service url via Powershell CLI


Raj Kumar (219) | asked Oct 28 '20, 2:29 a.m.

I am using below command on Window PowerShell CLI to fetch the response from the REST service URI (RTC service uri)

(Invoke-WebRequest -H @{'authUser'='userName'; 'authPass'='Password'} "https://abc.com/ccm/service/com.abc.server.YZGenerator.XYZGeneratorService?scmObjectNameorUUID=abc&scmObjectType=rws").Content

But I am fail to get right response, getting below message as response

<!DOCTYPE html>

<html >

<head>

<meta http-equiv="content-type" content="text/html; charset=UTF-8">

<meta http-equiv="X-UA-Compatible" content="IE=10">

<title></title>

<link type="text/css" rel="stylesheet" href="/ccm/web/_style/?include=A~&etag=HmtX">

<link rel="shortcut icon" href="/ccm/web/net.jazz.ajax/jazz.ico">

<body class="claro">

        <noscript><div id="net-jazz-ajax-NoScriptMessage">Javascript is either disabled or not available in your Browser</div></noscript>

        <div id="net-jazz-ajax-InitialLoadMessage">Loading...</div>

        <div id="net-jazz-ajax-WorkbenchRoot"></div>

..............

..........

</html>

One answer



permanent link
Ralph Schoon (60.5k33643) | answered Oct 29 '20, 3:41 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 The data you show is usually returned if you are not authenticated. The more important information would have been the result of the call e.g. 200.


Comments
Ralph Schoon commented Oct 29 '20, 3:43 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Your answer


Register or to post your answer.