Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^4: XML::Generator bad header?

by hallikpapa (Scribe)
on Aug 19, 2007 at 01:12 UTC ( [id://633548]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-23 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found