Hello,

I'm the maintener of LiveHTTPHeaders. A feature that a lots of people want is to be able to make a hierarchy of request as following:

http://www.test.com/
-- http://www.test.com/image1.gif
-- http://www.test.com/image2.gif
-- http://www.test.com/image2.gif
-- http://www.test.com/frame1.html
---- http://www.test.com/frame1/imagef1.gif
---- http://www.test.com/frame1/imagef2.gif
---- http://www.test.com/frame1/style.css
-- http://www.test.com/style.css

Also, if possible, to get the time for each request.

What I didnt' find by looking in the Mozilla's network code is a way to uniquely identify a request and be able to find its parent.

What I need to be able to do is, with javascript (component or not), keep an identifier in OnModifyRequest (to set time to 0) and retrieve it in OnExamineResponse (to update time). Also, I need to be able to tell to which request a particual request belongs to.

What I tought about, but needs some modification to Mozilla, is the following:
Keep a Browser unique long ID (that will be unique for each request unless its wrap but should take a very long time)
For each request, keep to value: its ID and its parent's ID
So, the above example should look like this now:


ID PID
1  1   http://www.test.com/
2  1   -- http://www.test.com/image1.gif
3  1   -- http://www.test.com/image2.gif
4  1   -- http://www.test.com/image2.gif
5  1   -- http://www.test.com/frame1.html
6  5   ---- http://www.test.com/frame1/imagef1.gif
7  5   ---- http://www.test.com/frame1/imagef2.gif
8  5   ---- http://www.test.com/frame1/style.css
9  1   -- http://www.test.com/style.css

The PID of a first request may be either 0 or same as its own ID. Do you think this is OK to do this or is there already a way to do this with the actual code ?

I looked in the actual code and didn't succeed in getting a true ID for a request. Some times, a same request gets a new object between OnModifyRequest and OnExamineResponse ! (This is only the case with Mozilla, not for Firebird). Also, if a request is done twice on the network, it should be interesting to be able to differentiate them (as in the second sample, image2.gif got 2 different ID).

Thanks,
Daniel Savard
_______________________________________________
Mozilla-netlib mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to