RE: User Data in a HTRequest
To: "'Matthias Kalle Dalheimer'" <firstname.lastname@example.org>
Subject: RE: User Data in a HTRequest
From: Maciej Puzio <email@example.com>
Date: Thu, 28 Dec 1995 14:37:09 +-100
Cc: "'WWW Library Mailing List'" <firstname.lastname@example.org>
From email@example.com Thu Dec 28 08: 44:06 1995
> I do not know if this is right place to propose extensions to the
> www-lib, so please let me know if there is another place to do this.
I've got the same problem.
> I would like to be able to associate additional data with a request
> in order to access this data in callbacks. A simple void* in the
> _HTRequest struct would already do the trick.
> Or is there already a way to accomplish this?
There is a void* field for this purpose in the HTRequest (its name is "context").
You can set it using HTRequest_setContext and read it using HTRequest_context.
See HTReq.h for details.
Hope this will help.
Happy New Year!