Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

urlscan log

10 views
Skip to first unread message

karl

unread,
Oct 26, 2003, 12:04:08 AM10/26/03
to
Hi,

Anyone knows what the below entry in a urlscan log means?
"Received malformed request which resulted in error 50
while modifying the 'SERVER' header.Request will be
rejected with response code 400."
I looked up the corresponding entry in the weblog, and it
was served with a 200 status OK.
I'm using urlscan 2.5 (logging only mode) with iis 5.0.
I'm concerned this would cause a problem when I enable
urlscan to reject requests.
Thanks for your help.

karl

Wade A. Hilmo [MS]

unread,
Oct 26, 2003, 1:18:13 AM10/26/03
to
Hi Karl,

Error 50 is ERROR_NOT_SUPPORTED.

The reason that this error occurs is that, when IIS parsed the original
request from the client, it did not meet the criteria to be either HTTP/1.0
or HTTP/1.1. When IIS receives such a request, it treats it as a "simple
HTTP" request. Simple HTTP predates HTTP/1.1 and it basically allows the
client to send a "GET <url>" request and receive only the entity body from
the server in response. No headers are supported with simple HTTP.

As a result of the fact that headers are not supported in this case,
UrlScan's attempt to either remove or alter the server header in the
response results in this error. When it occurs, UrlScan "swallows" the
response, since it cannot alter it, and replaces it with a 400 response. So
the client ends up seeing a "400 Bad Request".

In practice, there are very few (if any) simple HTTP clients in use as
browsers out there. More often than not, these requests are from
non-browser clients (like someone using Telnet to connect to your HTTP port
and manually typing a request, or some custom client someone's written for
whatever purpose.)

The reason that you are seeing a 200 in the W3SVC log is that, in logging
only mode, UrlScan does not modify any responses. Because of this, a 200
gets sent instead of the 400 that UrlScan would normally use.

I hope that this clarifies this for you.

Thank you,
-Wade A. Hilmo,
-Microsoft

"karl" <anon...@discussions.microsoft.com> wrote in message
news:043401c39b76$3478bd00$a401...@phx.gbl...

karl

unread,
Oct 27, 2003, 3:30:43 PM10/27/03
to
Wade,

Thanks a lot for the detailed explanation. Much
appreciated. I have enabled urlscan to block requests,
and the number of entries for these errors does not
correspond to the 400 responses in the iis weblog.
I assumed I would see a higher number of 400 responses.
Does a request blocked with urlscan get logged in the
weblog ?

>.
>

karl

unread,
Oct 27, 2003, 5:51:32 PM10/27/03
to
Wade,

.


Wade A. Hilmo [MS]

unread,
Oct 29, 2003, 10:29:15 AM10/29/03
to
Hi Karl,

Not all 400 responses get logged in the w3svc log. The reason for this is
that the w3svc log is site based, and sometimes the request is malformed to
the point that IIS can't even figure out the site it was sent to.

Starting with IIS 6, such requests would get logged in the HTTPERR log.

Thank you,
-Wade A. Hilmo,
-Microsoft

"karl" <anon...@discussions.microsoft.com> wrote in message

news:01e901c39cc9$319454b0$a501...@phx.gbl...

0 new messages