- From: Henrik Frystyk Nielsen <frystyk@w3.org>
- Date: Thu, 16 Jul 1998 18:13:56 -0400
- To: <pey@multiwire.net>
- Cc: www-lib@w3.org
At 23:07 7/16/98 +0200, Andrea Peyracchia wrote: >Thanks, I will try tomorrow. I have another problem with the referrer >logging funcion. Why these lines do not work correcly (HTLog_addReferer >returns 0) ? > > richiesta=HTRequest_new(); > log_refer=HTLog_open("log.txt", YES, YES); > status=HTLoadAbsolute("http://localhost/index.html", richiesta); > HTLog_addReferer(log_refer, richiesta, status); The referer logger has to be called as a filter. Use this code piece from the robot ref = HTLog_open("log.txt", YES, YES); if (ref) HTNet_addAfter(HTRefererFilter, NULL, ref, HT_ALL, HT_FILTER_LATE); ... now start the load ... Henrik -- Henrik Frystyk Nielsen, World Wide Web Consortium http://www.w3.org/People/Frystyk
Received on Thursday, 16 July 1998 18:13:37 UTC