W3C home > Mailing lists > Public > www-lib@w3.org > July to September 1998

Robot application profile; should recognize 301 automatic redirect?

From: Mike Berry <berrym@isc.upenn.edu>
Date: Wed, 5 Aug 1998 17:08:40 -0400 (EDT)
Message-Id: <199808052108.RAA06268@pobox.upenn.edu>
To: www-lib@w3.org
From http://www.w3.org/Library/src/HTProfil.html#Robot:

Robot Application Profile 

The robot profile contains much of the same functionality as the
client, but it does contain less filters. For example, robots are
normally not interested in performing automatic redirections or access
authentication, and hence this is not part of the robot profile. 

---

Given that a typical behavior of web servers on this request:

	http://host.domain/directory

is a 301 response:

<TITLE>301 Moved Permanently</TITLE>
</HEAD><BODY>
<H1>Moved Permanently</H1>
The document has moved <A HREF="http://host.domain/directory/">here</A>.<P>

Wouldn't we want a robot to follow this automatic redirect?

I modified my own HTProfil.c to use the redirect filter:

HTProfil.c:150

    /* Register some default set of BEFORE and AFTER filters */
    HTNet_addBefore(HTRuleFilter, NULL, NULL, HT_FILTER_MIDDLE); 
    HTNet_addBefore(HTProxyFilter, NULL, NULL, HT_FILTER_MIDDLE); 
    HTNet_addAfter(HTInfoFilter, NULL, NULL, HT_ALL, HT_FILTER_LATE); 

    HTNet_addAfter(HTRedirectFilter,
		   "http://*",	
		   NULL, 
		   HT_PERM_REDIRECT, HT_FILTER_MIDDLE);

Mike


---
Mike Berry, ISC Network Services
Information Systems and Computing, University of Pennsylvania
Voice:(215)/898-1264   Fax:(215)/898-9348     E-mail:<berrym@isc.upenn.edu>
Received on Wednesday, 5 August 1998 17:08:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:28 GMT