develooper Front page | perl.libwww | Postings from February 2001

Re: / and DirectoryIndex

Thread Previous | Thread Next
From:
C K
Date:
February 21, 2001 17:39
Subject:
Re: / and DirectoryIndex
Message ID:
F86SXdUjpszcSmjztg30000d8af@hotmail.com
Does
http:://www.domain.com/ redirect
to
http:://www.domain.com/index.html
?

If it does, perhaps you can keep a running tally of found links, so 
http:://www.domain.com/index.html doesn't get parsed, again.





>From: John Indra <john@office.naver.co.id>
>To: libwww@perl.org
>Subject: / and DirectoryIndex
>Date: Wed, 21 Feb 2001 16:42:20 +0700
>
>Hi all...
>
>How do I tell my user-agent (an LWP::UserAgent object) to NOT download both
>/ and index.html or whatever remote sites DirectoryIndex set to?
>Example, my user-agent sees 2 link:
>- http:://www.domain.com/
>- http:://www.domain.com/index.html
>IF in this situation both link to the same document, my user-agent will be 
>a
>fool if it tries to download both file. How do I make a "smarter" 
>user-agent
>that will know that those 2 links are the same and only perform one GET
>method, either to http:://www.domain.com/ OR
>http:://www.domain.com/index.html?
>
>Thanks...
>
>/john
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About