DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16578>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16578 Apache inserts \r's before \n's in the body CGI Summary: Apache inserts \r's before \n's in the body CGI Product: Apache httpd-2.0 Version: 2.0.43 Platform: All OS/Version: Other Status: NEW Severity: Critical Priority: Other Component: mod_cgi AssignedTo: bugs@httpd.apache.org ReportedBy: [EMAIL PROTECTED] Hi I am having a problem with an apache's mod_cgi in a CGI application running on Apache 2.0.43 on both windows and linux redhat. The application basically is trying to send back the following text in the body of a CGI return with a 200 OK return code. Messages Waiting: yes\r\n Voicemail: 2/2 (0/0)\r\n \r\n \r\n The CGI sends the following to standard out to send the above back to the calling program by using printf to sent the string to standard out (the http response stream) Content-Length: 49\r\n Content-Type: application/simple-message-summary\r\n \r\n Messages Waiting: yes\r\n Voicemail: 2/2 (0/0)\r\n \r\n \r\n The problem is that when the calling program receives the body text it comes in as \r\n Messages Waiting: yes\r\r\n Voicemail: 2/2 (0/0)\r\r\n \r\r\n \r\r\n I tried setting the content type to image/gif, removing the Content-length optional header, also changing the request prototol from HTTP 1.0 to HTTP 2.0 and still the return stream is corrupted every time. My only work around was to remove the \r's from the CGI and Apache filled them in on my behalf but it is not consistent on windows and linux, typically linux will insert an extra line befire the start of my body by the time it is received in the calling application Thanks in advance for any help John Coffey --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]