W3C home > Mailing lists > Public > www-lib@w3.org > July to September 1998

RE: Posting forms

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Thu, 16 Jul 1998 18:13:56 -0400
Message-Id: <3.0.5.32.19980716181356.00acd7b0@localhost>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:28 GMT