in reply to Re^3: XML::Generator bad header?
in thread XML::Generator bad header?

This is happens at the very end of the script. The only printing I do.
print CGI->header('text/xml'); print "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"; print "<dataset>\n"; print @output; print "</dataset>"; exit;

Replies are listed 'Best First'.
Re^5: XML::Generator bad header?
by Anonymous Monk on Aug 19, 2007 at 02:15 UTC
    Then your webserver does some printing also
      It;s like a default apache server. installed it just for testing. v2.0
        I guess you have a problem with your httpd.conf configuration,
        you can modify the headers apache sends with the Header directive.
        http://httpd.apache.org/docs/2.0/mod/mod_headers.html#header

        In order to debug the headers, you could telnet to your apache server:
        telnet localhost 80
        Trying 127.0.0.1... Connected to localhost. Escape character is '^]'.
        GET /now.xml
        This way you'll get the full response of apache.

        I use firefox with firebug (http://www.getfirebug.com/)
        Within firebug you can debug the headers, too.
        Michael