W3C home > Mailing lists > Public > www-lib@w3.org > April to June 1997

FTP errors

From: David Lee <dwl@slip.net>
Date: Tue, 3 Jun 1997 16:28:44 -0700 (PDT)
To: www-lib@w3.org
Message-ID: <Pine.GSO.3.96.970603162802.20133B-100000@slip-3.slip.net>


I need some help in extracting  errors while looking up an
FTP URL (e.g. ftp://ftp.hp.com/) using the latest WWWLib. 

To lookup the URL I do some preliminerries, then:
anchor = HTAnchor_findAddress(state->url);
chunk = HTLoadAnchorToChunk(anchor, request);

To get the error I do:
HTList *list = HTRequest_error(request);
info = (HTError *) HTList_nextObject(list);
index = HTError_index(info);

while (info = (HTError *) HTList_nextObject(list))
	 index = HTError_index(info);
	 status = HTErrors[index].code;
	 fprintf(stderr,"index=%d status=%d msg=%s\n", index, status,

This works fine for HTTP URLs. But when I try FTP URLs, the list ptr above
comes back 0x0 whether the FTP URL is found or not so there's no error
list for me to walk through.. If the host is not found the
list ptr is valid. 

If the list ptr is 0x0 for FTP URLs, how do I check for errors while
visiting a FTP URL? Do I need a different process for visiting FTP
URLs than the above which I'm using for HTTP URLs? Do I need to set
some special flag to get back FTP errors? This wasn't obvious from
looking at the docs and example codes.

Any help would be greatly appreciated.



Please respond to the above e-mail address as I'm not sure how to get
on this mailing list. 
Received on Tuesday, 3 June 1997 19:30:23 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:47 UTC