Hi Ron,
In 2010.1 Username and Password are sufficient (I didn't check 2008.2 or 2009.1). However, I tried this in 2008.1 and ran into problems. Here's a workaround:
-Make use of the CacheUserName and CachePassword URL parameters
-After you call the Get() method, the response contains a redirection message indicating a successful login (but the redirect doesn't work)
-Call the Get() method again and you'll get the HTML you're looking for
Here's an example:
USER>s req=##class(%Net.HttpRequest).%New()
USER>s req.Port=57773
USER>s req.Server="127.0.0.1"
USER>d req.SetParam("CacheUserName","_SYSTEM")
USER>d req.SetParam("CachePassword","SYS")
USER>w req.Get("/csp/sys/UtilHome.csp/")
1
USER>d req.HttpResponse.OutputToDevice()
HTTP/1.0 302 Redirect
CACHE-CONTROL: no-cache,no-store
CONNECTION: close
CONTENT-TYPE: text/html; charset=UTF-8
EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
LOCATION: /csp/sys/UtilHome.csp?CSPCHD=00000001000017kaxlxe000000Yfkx1VFPo0wb8oNAVlYMqA--
PRAGMA: no-cache
<HTML><HEAD>
<TITLE>Redirect</TITLE>
</HEAD><BODY>
<H1>Redirect</H1>
If you are not redirected automatically click <a href="/csp/sys/UtilHome.csp">here</a>
</BODY></HTML>
USER>w req.Get("/csp/sys/UtilHome.csp/")
1
USER>d req.HttpResponse.OutputToDevice()
HTTP/1.1 200 OK
CACHE-CONTROL: no-cache
CONNECTION: Close
CONTENT-TYPE: text/html; charset=UTF-8
DATE: Mon, 23 Nov 2009 21:46:54 GMT
EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
PRAGMA: no-cache
<!--
Home page for System Management Utilities
-->
<html><head>
<script language="JavaScript" type="text/javascript" src="/csp/broker/cspbroker.js"></script>
<script type="text/javascript">
var xenAutoLogoutTimerID = self.setTimeout("xenAutoLogout()",28815000);
function xenAutoLogout()
{
top.document.location.reload();
}
.
.
.
I cut the rest of the output, but you get the idea.
I hope that helps.
--Jill