You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Burkhard Herre <bh...@telematica.de> on 2005/07/20 16:19:43 UTC

[users@httpd] [suppress all HEADER in apache response ???]

hello

i want to sent all responses of my apache/php without all headers.

is there a chance to supress or delete the different header info before 
sending the answer to the client ? or only send the absolutely needed 
headers ?

edit the httpd.conf or php.ini ???

or same work in my php scripts ???

thank you all


Re: [users@httpd] Re: [suppress all HEADER in apache response ???]

Posted by Joshua Slive <js...@gmail.com>.
On 7/20/05, Burkhard Herre <bh...@telematica.de> wrote:
> hello
> 
> i implement a system without a brwoser as client.
> a software in C# calls the skript on the server over http and the skript
> sends same information back.
> 
> but only 10 bytes or something like that (binary data).
> 
> and i have a minimal bandwidth and a very slow connection.
> and so i want to reduce all wasteful overhead.

I was afraid of that.  It sounds like HTTP isn't really the most
appropriate protocol for this application, although I understand the
desire to reuse existing stuff.

Assuming you don't want to go through the hassle of defining a new
protocol and implementing an apache protocol module, a possible trick
would be to use HTTP/0.9 rather than HTTP/1.x.  In other words, send
simply
GET /yourfile[enter]
and you will get a response back with no headers.

Of  course, I don't know how well tested or maintained HTTP/0.9
support in apache is.  But it not not matter for your purposes.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: [suppress all HEADER in apache response ???]

Posted by Burkhard Herre <bh...@telematica.de>.
hello

i implement a system without a brwoser as client.
a software in C# calls the skript on the server over http and the skript 
sends same information back.

but only 10 bytes or something like that (binary data).

and i have a minimal bandwidth and a very slow connection.
and so i want to reduce all wasteful overhead.

thank you



Joshua Slive schrieb:
> On 7/20/05, Burkhard Herre <bh...@telematica.de> wrote:
> 
>>hello
>>
>>i want to sent all responses of my apache/php without all headers.
>>
>>is there a chance to supress or delete the different header info before
>>sending the answer to the client ? or only send the absolutely needed
>>headers ?
>>
>>edit the httpd.conf or php.ini ???
>>
>>or same work in my php scripts ???
> 
> 
> No, there are some core headers that cannot be removed without hacking
> the code.  Otherwise, you can use mod_headers to manipulate headers.
> 
> If you told us why you want to do this, we might be able to provide
> alternative suggestions.
> 
> Joshua.
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] [suppress all HEADER in apache response ???]

Posted by Joshua Slive <js...@gmail.com>.
On 7/20/05, Burkhard Herre <bh...@telematica.de> wrote:
> hello
> 
> i want to sent all responses of my apache/php without all headers.
> 
> is there a chance to supress or delete the different header info before
> sending the answer to the client ? or only send the absolutely needed
> headers ?
> 
> edit the httpd.conf or php.ini ???
> 
> or same work in my php scripts ???

No, there are some core headers that cannot be removed without hacking
the code.  Otherwise, you can use mod_headers to manipulate headers.

If you told us why you want to do this, we might be able to provide
alternative suggestions.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org