in reply to User Tracking in closed source application.
You could write a simple mod_perl handler that looks at the URL being called, and the variables being POSTed or GETed. The easiest place to stick it would probably be at the FixupHandler stage. This gets executed right before the content is generated. In your case just before the CGI is called.
If you need to know what is being served up by the software as well (ie need to look at the resulting HTML from the CGI call), then you could look at the new Filter support in mod_perl2 (needs Apache 2.0.x). With that you can write a filter in perl that will recieve the HTML that was generated by the content handler (the CGI script in this case), and you can do what you like with it. You would probably want to parse it for any pertinant info, and pass it on unchanged...
If none of this helps, then maybe you could give us some more info, like what user info are you trying to track? And how is a user defined in the app (cookie, basic auth, url rewriting, hidden vars)? If the user is already being tracked by a cookie through the app, and you just want to know which users visit which URLs, then you could look at just adding a custom log rule to apache to track the URL and the cookie to a log file (see how the mod_usertrack module logs cookie values).
- Cees
|
|---|