FirePHP/0.6 Changing headers

48 views
Skip to first unread message

Eli

unread,
Oct 5, 2011, 3:15:41 PM10/5/11
to firephp-dev
For some reason now, while running FirePHP/0.6.2 on Firefox 7.01, and
FireBug 1.8.3 ...

It seems from request to request, that the FirePHP user-agent addition
might not be included.

This causes havoc on anti-session-hijacking code, that is designed
around making sure that if the User Agent changed, assuming that it's
a new browser.

Example, some requests the user agent is:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:7.0.1) Gecko/20100101
Firefox/7.0.1

On others it is:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:7.0.1) Gecko/20100101
Firefox/7.0.1 FirePHP/0.6

These are all on requests to the same server, without having changed
any FireBug / FirePHP config in the meantime between requests.

Christoph Dorn

unread,
Oct 5, 2011, 3:34:25 PM10/5/11
to firephp-dev
Is there any pattern to it?

There is an option under "Tools" -> "FirePHP" -> "Options" to turn
user-agent modification off and inject a separate header instead. Can
you try this to see if it works reliably or if that does not get
injected consistently either?

Christoph

Eli

unread,
Oct 5, 2011, 4:57:42 PM10/5/11
to firephp-dev
The only pattern seems to be that at 'times' it happens pretty often.
Like when a request ends up having some error in it, suddenly the
header changes for a request then back again.

But then other times it seems fine for quite a while, and I ignore
that website for 40 minutes, come back, and the next click has a
different user-agent.

I had previously noticed (and now understand why) that sometimes,
especially the first time I hit a website, FirePHP might not work, and
it's because it isn't sending that user-agent string.

I'll try changing that option, and see what happens.

But for some reason, it seems that FirePHP isn't always reporting
itself as available.

Eli
Reply all
Reply to author
Forward
0 new messages