0

When a user request for a page (page request), browser request for several other components within that page (inline requests), i.e. images, CSSs, JSs, ...

By just sniffing the traffic between client and server, is there a way to differentiate page requests and inline requests? To find the time interval between user's page requests (page viewing time)?

Yasser
  • 376
  • 5
  • 13
  • Can't you just measure the time interval between HTML documents and ignore everything else? – JJJ Jan 13 '13 at 17:03
  • You mean to consider the page requests to be those requests that the `Content-Type` field of the response of them be `text/html`? Since I don't know the pattern of page requests and the technology of web server. – Yasser Jan 13 '13 at 18:37

1 Answers1

0

The web is inherently stateless, so it's tricky to figure out what requests mean what. If you know, for example that the application is Java EE based, you can look for JSESSION elements in the request header to figure out if this is the same user. If you further know the pattern of page requests, you can then start to figure out how long they're spending on a page.

If you have access to the traffic on the wire, you could sneakily inject some Javascript into the outgoing page and get monitor events back.

Arjan Tijms
  • 37,782
  • 12
  • 108
  • 140
Will
  • 6,179
  • 4
  • 31
  • 49
  • So you say that I need to know the session cookie and also the pattern of the page requests. but how about this request: `GET /wp-content/themes/all-allergies/lib/ffiad.php?dir=http://www.all-allergies.com...` Is it page request or inline request? I know it is inline. but how could we determine if the app is PHP based. – Yasser Jan 13 '13 at 18:25