Re: Does <A HREF hyperlink require "http://..."?




On Thu, 5 Jan 2006, Harlan Messinger wrote:

> On the other hand, IIS sends a redirect response when a directory is requested
> without a trailing slash:
>
> Client: give me http://www.example.com/xyz/abc
> IIS: ask for http://www.example.com/xyz/abc/ instead.

I can't recall a web server which doesn't do that, by default.

Pedants (such as DJ Delorie, who at one time had an explicit
demonstration on his web site in order to "make a point") have
to go to extra trouble if they want to disable that behaviour.

Apache is perfectly capable of being configured to return two
different valid resources in response to the two distinct URLs
http://www.example.com/xyz/abc and http://www.example.com/xyz/abc/ ,
but you have to work at it, it isn't something that happens by
accident. The default behaviour is the one that you (and most other
people) expect.

> When the client makes the new request, THEN the server will send the
> default file in the abc subdirectory.

Maybe. It depends. I've seen IIS servers which then issue yet
another redirection to default.asp

In fact I recall a Microsoft server which, when asked for the
canonical URL (ending in "hierarchy/"), issued four successive
redirections before it finally got around to returning some content
with a 200 OK status. The final URL was distinctly unmemorable (and
different every time).
.



Relevant Pages

  • Re: Page Cannot Be Displayed Errors
    ... In WFetch, for Advanced Request, change to "Add Headers" and write: ... > directly on the web server, ... >>> Where can I get the IIS 6.0 Resource Kit, and how do I use WFetch? ...
    (microsoft.public.inetserver.iis)
  • Re: Performance question (IIS 6)
    ... The delay on the first request is due to interaction between IIS process ... You can do this yourself by making a request to the necessary application ... Turn off all the application pool recycling parameters except maybe the ... until you reboot the server. ...
    (microsoft.public.inetserver.iis)
  • Re: Page Cannot Be Displayed Errors
    ... not IIS, but something else. ... >>> directly on the web server, ... >>>>> I have done some additional checking in the logs. ... >>>>> either the request isn't even getting to IIS at this point, ...
    (microsoft.public.inetserver.iis)
  • Re: Page Cannot Be Displayed Errors
    ... "Jesse" wrote in message ... >> In WFetch, for Advanced Request, change to "Add Headers" and write: ... >>> directly on the web server, ... >>>>> Where can I get the IIS 6.0 Resource Kit, and how do I use WFetch? ...
    (microsoft.public.inetserver.iis)
  • Re: How to intercept error when httpRuntime maxRequestLength is ex
    ... Jos's comments of using a secondary progress window on the client to ... HttpRequest request = HttpContext.Current.Request; ... To redirect the client your server has to send back a response. ...
    (microsoft.public.dotnet.framework.aspnet)