According to Geoff Hutchison:
> On Thu, 18 Jul 2002, Ian! D. Allen [NCFreeNet] wrote:
> > script that should be executed.  The error "host not found" is wrong -
> > do not use the status 'Transport::Document_no_host' here.
> 
> No, I disagree. Perhaps it should spit up a specific error message if
> you're using local_urls_only as you seem to be here. But you've told
> ht://Dig not to revert to HTTP, but it must. I'd call this "no host for
> HTTP transaction."
> 
> If you disagree, please offer some better suggestions. I see this as doing
> exactly what it's supposed to do. Unless you or someone else donates code
> to run local CGIs like a full HTTP server does, CGIs will revert to HTTP
> transactions.

Well, I think it's appropriate to use Document_no_host if the Retriever
is supposed to fall back to HTTP, and that fails because it can't
contact the host.  However, if the user has set local_urls_only, then the
Retriever should stick to the Document_not_local error code and give the
appropriate error message in this case.  There are some cases where it
doesn't do this, and gives the "host not found" error instead.  Also,
the error handling for Document_not_local should probably be the same
as for Document_no_host, except the error message of course.  That is,
in both cases it should treat the document as not being found, and mark
it for purging.

I think we also still need to do something about handling local_urls_only
the same way in 3.2.0b4 and 3.1.x, as I think there are still some
differences in terms of how/when it falls back to HTTP.

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba  Winnipeg, MB  R3E 3J7  (Canada)


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to