Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Print out an XML file to browser

by almut (Canon)
on Feb 20, 2007 at 11:04 UTC ( #601069=note: print w/replies, xml ) Need Help??

in reply to Print out an XML file to browser

Which setup are you using, i.e. which webserver, browser...? In case you're using Firefox, there's a nifty little extension LiveHTTPHeaders that allows you to watch which HTTP headers are being exchanged between browser and webserver.

If that doesn't help you to debug the "bad header" issue yourself, just post the respective headers that LiveHTTPHeaders (or some similar tool for your browser) is reporting.

The print header('text/xml'); suggested by virtualsue works fine for me (using Apache / Firefox), so I suppose your problem is no longer related to the script code itself...

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://601069]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2022-12-06 21:04 GMT
Find Nodes?
    Voting Booth?

    No recent polls found