[OpenSTA-devel] [ opensta-Bugs-1545996 ] HTTP Capture : No primary URI / Timer set with some browse
Brought to you by:
dansut
|
From: SourceForge.net <no...@so...> - 2007-07-18 23:23:34
|
Bugs item #1545996, was opened at 2006-08-24 10:18 Message generated for change (Comment added) made by dansut You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110857&aid=1545996&group_id=10857 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: HTTP Capture Group: Inconvenience Status: Open >Resolution: Accepted Priority: 5 Private: No Submitted By: duominike (duominike) >Assigned to: Daniel Sutcliffe (dansut) Summary: HTTP Capture : No primary URI / Timer set with some browser Initial Comment: Environnment : Windows XP SP2 Internet Explorer : 6.0.2800.1106.xpsp2.0530301-1526 Patchs : SP1; Q867801; Q903235 Capture mode : Gateway (Local) / No proxy used / Page timers is on 1) Script Record via Script Modeler->Capture->Record 2) In the HTP result file, there is no URI with the PRIMARY keyword and timers If I do the same actions by using Internet Explorer 5.5 or Firefox 1.5.0.4, no problem. I can obtain PRIMARY URI et timers. After investigating the problem, I realize that browsers send different HTTP headers request and that the value of field "Accept" in HTTP header seems to be very important for HTTP recorder module in order to choose PRIMARY URI. With IE 6.0, the value of ACCEPT is always the following ("*/*") for all kinds of URI (primary [servlet], normal [images]) and so, the recorder can't find the PRIMARY URI and position the TIMERS. Moreover, when you use the "BView" add-on to replay the capture, no screen is displayed Is is possible for recorder module (and probably "BWiew" add-on) to use another HTTP header field to determine PRIMARY URI ("Referer" could be a good candidate) without depending on "Accept" field whom value depends on your favourite browser ? ---------------------------------------------------------------------- >Comment By: Daniel Sutcliffe (dansut) Date: 2007-07-18 19:23 Message: Logged In: YES user_id=19748 Originator: NO The code does use the Accept header to decide whether a request is PRIMARY or not - a request with only '*/*' in the 'Accept:' header is seen as not a PRIMARY request, everything else is a PRIMARY. This theory obviously breaks whenever a HTTP client decides to do something different - the content of the 'Accept:' header is not a great thing to base the decision on. However, the PRIMARY keyword has no real functional meaning - the only potential problem is if you want to rely on the optional automatically recorded 'Page Timers' which will be in the wrong place. The 'Referer:' header would seem to be a good choice to base the decision on - but the Referer of the 2nd primary is the same as that of secondaries to the 1st primary, etc. Maybe the only ways to truly identify primary requests are: - actually see the user clicks and only label the requests that come from these as being. - post process the recording and label as a primary just the requests that are mentioned in a Referer field - but this means you'd miss primary pages with no sub content. Neither of these are ideal or practical solutions so it will probably be left as it is until a better idea can be thought of, or a strong reason for changing it arrives. The comments about BView do not belong in this bug report - BView is an add-on to the OpenSTA toolset and not part of the project, plus I'm not sure how the problem is related. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110857&aid=1545996&group_id=10857 |