Hi, I am currently writing some sort of proxy application, to proxy requests to outlook web access for added security.
Now I have a problem with 207 status codes. Wheneven I set a 207 status code and some content, Apache still outputs an apache header at the end of the response. For example, my asp script is as follows: $Response->{Status} = "200"; $Response->Write("Hello, world"); Then apache sends to the browser (some headers skipped): +-+-+-+-+-+-+-+-+-+-+ cut here +-+-+-+-+-+-+-+-+-+-+ HTTP/1.1 200 OK Date: Mon, 23 Feb 2004 13:39:20 GMT Server: Apache/1.3.29 (Unix) mod_perl/1.29 mod_ssl/2.8.16 OpenSSL/0.9.7c Content-Type: text/xml Hello, world +-+-+-+-+-+-+-+-+-+-+ cut here +-+-+-+-+-+-+-+-+-+-+ However, when my script is as follows: # note the 207 status code $Response->{Status} = "207"; $Response->Write("Hello, world"); then apache sends to the browser (some headers skipped): +-+-+-+-+-+-+-+-+-+-+ cut here +-+-+-+-+-+-+-+-+-+-+ HTTP/1.1 207 Multi-Status Date: Mon, 23 Feb 2004 13:39:20 GMT Server: Apache/1.3.29 (Unix) mod_perl/1.29 mod_ssl/2.8.16 OpenSSL/0.9.7c Content-Type: text/plain Hello, worldHTTP/1.1 207 Multi-Status Date: Mon, 23 Feb 2004 13:39:20 GMT Server: Apache/1.3.29 (Unix) mod_perl/1.29 mod_ssl/2.8.16 OpenSSL/0.9.7c Keep-Alive: timeout=15, max=99 Content-Type: text/html; charset=iso-8859-1 27a <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <HTML><HEAD> <TITLE>207 Multi-Status</TITLE> </HEAD><BODY> <H1>Multi-Status</H1> The server encountered an internal error or misconfiguration and was unable to complete your request.<P> Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error.<P> More information about this error may be available in the server error log.<P> <P>Additionally, a 207 Multi-Status error was encountered while trying to use an ErrorDocument to handle the request. </BODY></HTML> 0 +-+-+-+-+-+-+-+-+-+-+ cut here +-+-+-+-+-+-+-+-+-+-+ Indeed, apache just adds some sort or error document right after my output. I can't seem to switch of this behaviour. Maybe someone else has a clue? Kind regards, Kenneth van Grinsven -- Userve Communications B.V. http://www.userve.nl --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]