Open
Bug 1151255
Opened 10 years ago
Updated 2 years ago
Network monitor returns misleading content on Unauthorized pages
Categories
(DevTools :: Netmonitor, defect)
Tracking
(Not tracked)
UNCONFIRMED
People
(Reporter: killerchip0, Unassigned)
Details
Attachments
(1 file)
59.36 KB,
application/x-zip-compressed
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0
Build ID: 20150402191859
Steps to reproduce:
Created a PHP webpage that requests Basic Authentication when username or password is not submitted (see my attached webpage).
The page returns in body a 'please authenticate' message and 401 Unauthorized status, to trigger basic authentication.
When the user enters username/password (any username/password) the page returns actual HTML page content (see attached script).
Actual results:
Firefox Network monitor shows in the Response body of the 'Unauthorized' request the actual body of the subsequent 'authorized' request and not the message 'please authenticate'. (see attached 'misleading.png')
While taking a network capture, I saw that my script and server indeed did not return the HTML page but the 'please authenticate' message as expected. (see attached p80.pcap wireshark capture)
Expected results:
The network monitor should have return in the 'Unauthorized' response body the 'please authenticate' message and not the HTML page.
I think it is a bug that misleads developer into thinking his PHP script is wrong.
Updated•10 years ago
|
Component: Untriaged → Developer Tools: Netmonitor
Updated•7 years ago
|
Product: Firefox → DevTools
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•