Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to get content of RTC service url via Powershell CLI

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>

0 votes



One answer

Permanent link

 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.

0 votes

Comments

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,028
× 7,507
× 1,700
× 1,337
× 382

Question asked: Oct 28 '20, 2:29 a.m.

Question was seen: 2,060 times

Last updated: Oct 29 '20, 3:43 a.m.

Confirmation Cancel Confirm