HTTP test

General chat about HostMonitor (all messages posted before March 07, 2003 available here).
Locked
gdvl
Posts: 103
Joined: Thu Apr 04, 2002 6:00 pm
Location: Belgium
Contact:

Post by gdvl »

On 2003-02-23 18:34, KS-Soft wrote:
May be IE configured to use some proxy server?
Could you try to make HTTP request using any telnet client? Just connect to port 80 and type something like "GET myserver/mypage.htm HTTP/1.0". What answer you get from server?

HTTP/1.1 401 Access Denied
Server: Microsoft-IIS/5.0
Date: Fri, 21 Mar 2003 17:10:08 GMT
WWW-Authenticate: Negotiate
WWW-Authenticate: NTLM
Content-Length: 3643
Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html dir=ltr>

<head>
<style>
a:link {font:8pt/11pt verdana; color:FF0000}
a:visited {font:8pt/11pt verdana; color:#4e4e4e}
</style>

<META NAME="ROBOTS" CONTENT="NOINDEX">

<title>You are not authorized to view this page</title>

<META HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252">
</head>

<script>
function Homepage(){
<!--
// in real bits, urls get returned to our script like this:
// res://shdocvw.dll/http_404.htm#http://www.DocURL.com/bar.htm

//For testing use DocURL = "res://shdocvw.dll/http_404.htm#https://www.m
icrosoft.com/bar.htm"
DocURL=document.URL;

//this is where the http or https will be, as found by searching for ://
but skipping the res://
protocolIndex=DocURL.indexOf("://",4);

//this finds the ending slash for the domain server
serverIndex=DocURL.indexOf("/",protocolIndex + 3);

//for the href, we need a valid URL to the domain. We search for the # s
ymbol to find the begining
//of the true URL, and add 1 to skip it - this is the BeginURL value. We
use serverIndex as the end marker.
//urlresult=DocURL.substring(protocolIndex - 4,serverIndex);
BeginURL=DocURL.indexOf("#",1) + 1;
urlresult=DocURL.substring(BeginURL,serverIndex);

//for display, we need to skip after http://, and go to the next slash
displayresult=DocURL.substring(protocolIndex + 3 ,serverIndex);
document.write( '<A HREF="' + escape(urlresult) + '">' + displayresult +
"</a>");
}
//-->
</script>

<body bgcolor="FFFFFF">

<table width="410" cellpadding="3" cellspacing="5">

<tr>
<td align="left" valign="middle" width="360">
<h1 style="COLOR:000000; FONT: 13pt/15pt verdana"><!--Problem-->You are
not authorized to view this page</h1>
</td>
</tr>

<tr>
<td width="400" colspan="2">
<font style="COLOR:000000; FONT: 8pt/11pt verdana">You do not have permi
ssion to view this directory or page using the credentials you supplied.</font><
/td>
</tr>

<tr>
<td width="400" colspan="2">
<font style="COLOR:000000; FONT: 8pt/11pt verdana">

<hr color="#C0C0C0" noshade>

<p>Please try the following:</p>

<ul>
<li>Click the <a href="javascript:location.reload()">Refresh</a> button to try a
gain with different credentials.</li>

<li>If you believe you should be able to view this directory or page, please con
tact the Web site administrator by using the e-mail address or phone number list
ed on the

<script>
<!--
if (!((window.navigator.userAgent.indexOf("MSIE") > 0) && (window.naviga
tor.appVersion.charAt(0) == "2")))
{
Homepage();
}
//-->
</script>
home page.</li>
</ul>

<h2 style="font:8pt/11pt verdana; color:000000">HTTP 401.2 - Unauthorized: L
ogon failed due to server configuration<br>
Internet Information Services</h2>

<hr color="#C0C0C0" noshade>

<p>Technical Information (for support personnel)</p>
<ul>

<li>Background:<br>
This is usually caused by a server-side script not sending the proper WW
W-Authenticate header field. Using Active Server Pages scripting this is done by
using the <strong>AddHeader</strong> method of the <strong>Response</strong> ob
ject to request that the client use a certain authentication method to access th
e resource.

<p>
<li>More information:<br>
<a href="http://www.microsoft.com/ContentRedirec ... r=5.0&pid=
&ID=401.2&cat=web&os=&over=&hrd=&Opt1=&Opt2=&Opt3=" target="_blank">Microsoft Su
pport</a>
</li>
</p>
</ul>

</font></td>
</tr>

</table>
</body>
</html>


Connection to host lost.

Regards
Alex
I think it has someting to do with security. I think the currently logged on users has access to the site. What's the difference with the URL test ? (an IE explorer security setting ?)

PS: See the 'old' forum for the whole story.

Regards,
Gert

_________________


<font size=-1>[ This Message was edited by: gdvl on 2003-03-21 10:26 ]</font>
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Of course HostMonitor sets "Bad" status of the test. Server returns "HTTP/1.1 401 Access Denied" responce code.

Regards
Alex
gdvl
Posts: 103
Joined: Thu Apr 04, 2002 6:00 pm
Location: Belgium
Contact:

Post by gdvl »

Ok, that's right.
Can you help me: why I've no problem when I use IE or URL test ?

Regards,
Gdvl
User avatar
Marcus
Posts: 367
Joined: Mon Nov 18, 2002 6:00 pm

Post by Marcus »

WWW-Authenticate: NTLM

This means NO clear text authentication. IE (on windows platform) is the only browser able to use this. I assume it is not build into HM and URL test uses IE.

Either set IIS authentication to basic or anonymous, or use the URL test.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Marcus is right
gdvl
Posts: 103
Joined: Thu Apr 04, 2002 6:00 pm
Location: Belgium
Contact:

Post by gdvl »

Thanks Marcus and Alex
I'll contact my web admin about this.

Regards,
Gert

Locked