httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruce Bailey" <>
Subject RE: GET Method Adds CR's
Date Thu, 30 May 2002 14:08:00 GMT
Thanks for the reply.  The reason I assumed that the Apache server was adding the CR's is because
my client program is doing direct socket reads (i.e. send/recv).  I'll re-evaluate my code
and samples to make sure that its not something that I'm doing.

I take it that the Apache web server always returns the document without changes?  That is,
it always processes the GET method in 'binary' mode?  Is that correct?

Thanks again,


-----Original Message-----
From: Octavian Rasnita []
Sent: Wednesday, May 29, 2002 10:32 PM
Subject: Re: GET Method Adds CR's

It depends how those  programs are written.
In Windows, if you want to make a Perl script, for example, if you want to
open or save a binary file you should use the binmode function.
The sintax is:

binmode FILE_HANDLE;

You may also want to use the read function, of course if you are using Perl.

I don't think it is an Apache problem.


----- Original Message -----
From: "Bruce Bailey" <>
To: "Apache Users List" <>
Sent: Wednesday, May 29, 2002 9:02 PM
Subject: GET Method Adds CR's

> Hi
> I have Apache server version 2.0 installed on my Win2000 system.  I have
> custom written client that gets documents.  For some reason, every file
> I get, regardless of extension, Apache inserts carriage returns before
> the newline characters.  This even happens with binary files.  I have
> looked for HTTP headers or configuration settings to turn this off, but
> no luck.
> Does anyone have an idea on how to do binary downloads?
> Thanks in advance,
> Bruce
> Bruce Bailey
> 2525 SW First Avenue
> Portland, OR 97201
> (503) 294-4206
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message