I have some CGI scripts that generate index pages. Dear htdig refuses
to execute these scripts, saying they are "non local" and giving the
incorrect and misleading message "host not found":
---
4:11:0:http://localhost/~idallen/cgi-bin/checkbox_files.cgi?dir=/~idallen/resume/:
Trying local files
tried local file
/home/idallen/public_html/cgi-bin/checkbox_files.cgi?dir=/~idallen/resume/index.html
Local retrieval failed, trying HTTP
host not found
---
>From htdig/Retriever.cc:
if (local_filenames)
{
if (debug > 1)
cout << "Trying local files" << endl;
status = doc->RetrieveLocal(date, local_filenames);
if (status == Transport::Document_not_local)
{
if (debug > 1)
cout << "Local retrieval failed, trying HTTP" << endl;
if (server && !server->IsDead()
/* THIS IS BAD -> */ && !local_urls_only)
status = doc->Retrieve(server, date);
else
status = Transport::Document_no_host;
}
If the URL is already classified as a "local filename", one should not
second-guess that classification by checking local_urls_only, since a
failure to retrieve a local file from the file system does *not* mean
that the file is non-local - it may mean that the item is a local CGI
script that should be executed. The error "host not found" is wrong -
do not use the status 'Transport::Document_no_host' here.
If I am misunderstanding this, please correct me. If I'm right, either
submit the bug report for me or tell me to do it. Thanks in advance!
--
-IAN! Ian! D. Allen Ottawa, Ontario, Canada [EMAIL PROTECTED]
Home Page on the Ottawa FreeNet: http://www.ncf.ca/~aa610/
College professor at: http://www.algonquincollege.com/~alleni/
Board Member, TeleCommunities CANADA http://www.tc.ca/
-------------------------------------------------------
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