Closed
Bug 391833
Opened 18 years ago
Closed 18 years ago
php-created xml page didn't work
Categories
(Firefox :: File Handling, defect)
Firefox
File Handling
Tracking
()
RESOLVED
INVALID
People
(Reporter: hans.baumann, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6
wish to change attached xsl-file (e.g. depenging on kind of browser or URI). This should be able with php script (see sample link).
InternetExplorer works fine (can see html page with new xsl). FireFox seems to think, that xml file is html page :(
Reproducible: Always
Steps to Reproduce:
1. create xml file with link to xsl file.
2. create new xsl file with another URI (another file)
3. write php script, which changes link to xsl, all other xml lines will be transferred originally.
4. start this php script with IE and with Firefox :(
Actual Results:
firefox shows plain text of xml content
Expected Results:
firefox should display xml with new xsl
Comment 1•18 years ago
|
||
You probably need to specify the correct Content-Type for your PHP.
GET /xml/testcase/test.php HTTP/1.1
...
HTTP/1.x 200 OK
...
Content-Type: text/html
Comment 2•18 years ago
|
||
This is because your server is returning the incorrect content type. The returned headers include:
Content-Type: text/html
So, that is why it is being interpreted as if it were HTML code.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•