Hello,

Those of you that needed to set HTTP status code with Header() calls know
that if you set the status code to 500 (Header("HTTP/1.0 500 Internal
Server Error")), Apache overrides whatever you have set as page body
contents.

This is a bit problematic if you want to use PHP to generate SOAP request
responses because the standard says that fault response messages should
return status code 500 and the message body should contain a SOAP XML
response describing the fault.

Since Apache redefines message body with some message in HTML (even if you
set Content-Type header to text/xml) if a page script returns status code
500, SOAP standard full conformance seems impossible to achieve.

Is this really a Apache problem or is it a PHP problem?  Anybody knows how
to overcome this problem?

Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to