Hey Monks!

I need to revisit this topic: my script produces XML data which produces an error on A9. When I save the output and let Apache serve it, it works.
Today I tried again to get it to work and did a whole slew of tests:

1. I downloaded it with LWP::UserAgent and compared the response objects: besides some minor stuff in the header (which shouldn't matter) - identical!

2. I did a wget on the resources and compared with the diff command - no diffs, which means - identical!

3. I had a look at the headers again and also compared mine with a completely different header which also works fine. Below the headers.

Connection: close Date: Wed, 29 Aug 2007 17:27:13 GMT Accept-Ranges: bytes ETag: "367930c-12a5-ca8adf00" Server: Apache/2.0.54 (Unix) PHP/4.4.7 mod_ssl/2.0.54 OpenSSL/0.9.7e m +od_fastcgi/2.4.2 DAV/2 SVN/1.4.2 Content-Length: 4773 Content-Type: application/xml Last-Modified: Wed, 29 Aug 2007 17:19:24 GMT Client-Date: Wed, 29 Aug 2007 17:27:14 GMT Client-Response-Num: 1
- working! (data produced by my script and saved to filesystem. then served by apache)
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- +check=0 Connection: close Date: Wed, 29 Aug 2007 17:35:19 GMT Pragma: no-cache Server: Apache/2.0.59 (CentOS) Content-Type: application/xml; charset=UTF-8 Expires: Thu, 19 Nov 1981 08:52:00 GMT Client-Date: Wed, 29 Aug 2007 17:35:19 GMT Client-Response-Num: 1 Set-Cookie: PHPSESSID=flmm8b47j1d44dkmsiqjm71l74; path=/ X-Powered-By: PHP/5.1.6
- working! (another site, not my data, but validated ok)
Connection: close Date: Wed, 29 Aug 2007 18:04:31 GMT Accept-Ranges: none Server: Apache/2.0.54 (Unix) PHP/4.4.7 mod_ssl/2.0.54 OpenSSL/0.9.7e m +od_fastcgi/2.4.2 DAV/2 SVN/1.4.2 Content-Length: 4753 Content-Type: application/xml Client-Date: Wed, 29 Aug 2007 18:04:33 GMT Client-Response-Num: 1 Set-Cookie: LX=ID=nth2ctfs6fpg&T=1188410672&L=en; expires=Sun, 17-Jan- +2038 10:00:00 GMT; path=/; domain=.lumerias.com
- error (my data directly produced by the script but doesn't pass the test)

Where is the invisible difference in my data??
As you can see both responses have the same length, content is completely identical (according to diff) and even the important headers (here: application/xml etc.) are the same...

In reply to Re: Output of XML: "valid XML header needed"-error (OpenSearch)? by Anonymous Monk
in thread Output of XML: "valid XML header needed"-error (OpenSearch)? by isync

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.